diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-18 00:11:18 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-18 00:11:18 +0000 |
commit | ca2eb5b26a9fad01145d45f18d016c757d31bddd (patch) | |
tree | 667884b5a666f2ce2ea121a6f1f48fab8740998e /spec/controllers | |
parent | d9ea1b8b19196ab0a5c76123c586d247301264e9 (diff) | |
download | gitlab-ce-ca2eb5b26a9fad01145d45f18d016c757d31bddd.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/profiles/two_factor_auths_controller_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/controllers/profiles/two_factor_auths_controller_spec.rb b/spec/controllers/profiles/two_factor_auths_controller_spec.rb index 59eb33f4bc6..818bf2a4ae6 100644 --- a/spec/controllers/profiles/two_factor_auths_controller_spec.rb +++ b/spec/controllers/profiles/two_factor_auths_controller_spec.rb @@ -70,6 +70,12 @@ RSpec.describe Profiles::TwoFactorAuthsController do go end + it 'dismisses the `ACCOUNT_RECOVERY_REGULAR_CHECK` callout' do + expect(controller.helpers).to receive(:dismiss_account_recovery_regular_check) + + go + end + it 'renders create' do go expect(response).to render_template(:create) @@ -117,6 +123,12 @@ RSpec.describe Profiles::TwoFactorAuthsController do user.reload expect(user.otp_backup_codes).not_to be_empty end + + it 'dismisses the `ACCOUNT_RECOVERY_REGULAR_CHECK` callout' do + expect(controller.helpers).to receive(:dismiss_account_recovery_regular_check) + + post :codes + end end describe 'DELETE destroy' do |