diff options
Diffstat (limited to 'spec/migrations/20221012033107_add_password_last_changed_at_to_user_details_spec.rb')
-rw-r--r-- | spec/migrations/20221012033107_add_password_last_changed_at_to_user_details_spec.rb | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/spec/migrations/20221012033107_add_password_last_changed_at_to_user_details_spec.rb b/spec/migrations/20221012033107_add_password_last_changed_at_to_user_details_spec.rb deleted file mode 100644 index 5c228381b57..00000000000 --- a/spec/migrations/20221012033107_add_password_last_changed_at_to_user_details_spec.rb +++ /dev/null @@ -1,33 +0,0 @@ -# frozen_string_literal: true - -require 'spec_helper' - -require_migration! - -RSpec.describe AddPasswordLastChangedAtToUserDetails, feature_category: :user_profile do - let!(:namespace) { table(:namespaces).create!(name: 'user', path: 'user') } - let!(:users) { table(:users) } - let!(:user) { create_user! } - let(:user_detail) { table(:user_details).create!(user_id: user.id, provisioned_by_group_id: namespace.id) } - - describe "#up" do - it 'allows to read password_last_changed_at' do - migrate! - - expect(user_detail.password_last_changed_at).to eq nil - end - end - - private - - def create_user!(name: "Example User", email: "user@example.com", user_type: nil) - users.create!( - name: name, - email: email, - username: name, - projects_limit: 0, - user_type: user_type, - confirmed_at: Time.current - ) - end -end |