diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-12 15:10:37 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-12 15:10:37 +0000 |
commit | 84dd3070dff9e36897345bbfd8dc1bf3470376ae (patch) | |
tree | 022fb1c625685b0dfbbdb0c4cf576df272d52043 /spec/controllers/registrations_controller_spec.rb | |
parent | bbfd13e575237aaa69a49caf1e23ebd878c2f824 (diff) | |
download | gitlab-ce-84dd3070dff9e36897345bbfd8dc1bf3470376ae.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/controllers/registrations_controller_spec.rb')
-rw-r--r-- | spec/controllers/registrations_controller_spec.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/spec/controllers/registrations_controller_spec.rb b/spec/controllers/registrations_controller_spec.rb index 2fb17e56f37..737ec4f95c5 100644 --- a/spec/controllers/registrations_controller_spec.rb +++ b/spec/controllers/registrations_controller_spec.rb @@ -6,7 +6,6 @@ RSpec.describe RegistrationsController do include TermsHelper before do - stub_feature_flags(invisible_captcha: false) stub_application_setting(require_admin_approval_after_user_signup: false) end @@ -193,15 +192,10 @@ RSpec.describe RegistrationsController do context 'when invisible captcha is enabled' do before do - stub_feature_flags(invisible_captcha: true) - InvisibleCaptcha.timestamp_enabled = true + stub_application_setting(invisible_captcha_enabled: true) InvisibleCaptcha.timestamp_threshold = treshold end - after do - InvisibleCaptcha.timestamp_enabled = false - end - let(:treshold) { 4 } let(:session_params) { { invisible_captcha_timestamp: form_rendered_time.iso8601 } } let(:form_rendered_time) { Time.current } |