summaryrefslogtreecommitdiff
path: root/spec/controllers
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/controllers
parent20575859b1bf431421427d52c4ac5a33cf662df6 (diff)
downloadgitlab-ce-1735ed613910b38c4c069da9c4637bbc4856db36.tar.gz
rename cache db column with `_cached` suffix
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/application_controller_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/application_controller_spec.rb b/spec/controllers/application_controller_spec.rb
index 7427c93b593..760f33b09c1 100644
--- a/spec/controllers/application_controller_spec.rb
+++ b/spec/controllers/application_controller_spec.rb
@@ -183,7 +183,7 @@ describe ApplicationController do
end
it 'returns true if a 2FA requirement is set on the user' do
- user.require_two_factor_authentication = true
+ user.require_two_factor_authentication_from_group = true
allow(controller).to receive(:current_user).and_return(user)
expect(subject).to be_truthy
@@ -201,7 +201,7 @@ describe ApplicationController do
end
context 'with a 2FA requirement set on the user' do
- let(:user) { create :user, require_two_factor_authentication: true, two_factor_grace_period: 23 }
+ let(:user) { create :user, require_two_factor_authentication_from_group: true, two_factor_grace_period: 23 }
it 'returns the user grace period if lower than the application grace period' do
stub_application_setting two_factor_grace_period: 24