summaryrefslogtreecommitdiff
path: root/spec/models/user_spec.rb
diff options
context:
space:
mode:
authorAlexis Reigel <mail@koffeinfrei.org>2017-03-14 14:34:21 +0100
committerAlexis Reigel <mail@koffeinfrei.org>2017-04-06 10:01:14 +0200
commit1735ed613910b38c4c069da9c4637bbc4856db36 (patch)
tree7c7982af2bd8777bc919bef331edc9a0a1513eec /spec/models/user_spec.rb
parent20575859b1bf431421427d52c4ac5a33cf662df6 (diff)
downloadgitlab-ce-1735ed613910b38c4c069da9c4637bbc4856db36.tar.gz
rename cache db column with `_cached` suffix
Diffstat (limited to 'spec/models/user_spec.rb')
-rw-r--r--spec/models/user_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb
index ddd438bfc25..3977af55176 100644
--- a/spec/models/user_spec.rb
+++ b/spec/models/user_spec.rb
@@ -1548,7 +1548,7 @@ describe User, models: true do
end
it 'requires 2FA' do
- expect(user.require_two_factor_authentication).to be true
+ expect(user.require_two_factor_authentication_from_group).to be true
end
it 'uses the shortest grace period' do
@@ -1567,7 +1567,7 @@ describe User, models: true do
end
it 'requires 2FA' do
- expect(user.require_two_factor_authentication).to be true
+ expect(user.require_two_factor_authentication_from_group).to be true
end
end
@@ -1582,7 +1582,7 @@ describe User, models: true do
end
it 'requires 2FA' do
- expect(user.require_two_factor_authentication).to be true
+ expect(user.require_two_factor_authentication_from_group).to be true
end
end
@@ -1596,7 +1596,7 @@ describe User, models: true do
end
it 'does not require 2FA' do
- expect(user.require_two_factor_authentication).to be false
+ expect(user.require_two_factor_authentication_from_group).to be false
end
it 'falls back to the default grace period' do