diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-09-19 21:16:18 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-09-19 21:16:18 -0400 |
commit | 259851c0d601632ad02a9f6ac0d59276552570b9 (patch) | |
tree | ee51f875433e2df76f88a1ae8bad83225afe6400 /spec/controllers/profiles | |
parent | 69723d20024821fb4206e899ffa3acd2da690315 (diff) | |
download | gitlab-ce-259851c0d601632ad02a9f6ac0d59276552570b9.tar.gz |
Bump devise-two-factor to 2.0.0rs-bump-two-factor
Addresses internal https://dev.gitlab.org/gitlab/gitlabhq/issues/2605
See https://github.com/tinfoil/devise-two-factor/pull/43
Diffstat (limited to 'spec/controllers/profiles')
-rw-r--r-- | spec/controllers/profiles/two_factor_auths_controller_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/profiles/two_factor_auths_controller_spec.rb b/spec/controllers/profiles/two_factor_auths_controller_spec.rb index f54706e3aa3..4fb1473c2d2 100644 --- a/spec/controllers/profiles/two_factor_auths_controller_spec.rb +++ b/spec/controllers/profiles/two_factor_auths_controller_spec.rb @@ -37,7 +37,7 @@ describe Profiles::TwoFactorAuthsController do context 'with valid pin' do before do - expect(user).to receive(:valid_otp?).with(pin).and_return(true) + expect(user).to receive(:validate_and_consume_otp!).with(pin).and_return(true) end it 'sets two_factor_enabled' do @@ -63,7 +63,7 @@ describe Profiles::TwoFactorAuthsController do context 'with invalid pin' do before do - expect(user).to receive(:valid_otp?).with(pin).and_return(false) + expect(user).to receive(:validate_and_consume_otp!).with(pin).and_return(false) end it 'assigns error' do |