diff options
author | Stan Hu <stanhu@gmail.com> | 2018-06-21 21:13:08 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-06-22 01:37:34 +0300 |
commit | 9b48d9f43f237ccf87594a944a00896996cadf55 (patch) | |
tree | 68213b3bda01cc793903ee91c6505294f0a1abca /spec/views/devise | |
parent | 6d2a48d52fc3b32eedd64d15cc23906f1871be7b (diff) |
Show a reCAPTCHA on signin page if custom header is set
This will only be displayed if `X-GitLab-Show-Login-Captcha` is set as an HTTP
header.
Diffstat (limited to 'spec/views/devise')
-rw-r--r-- | spec/views/devise/shared/_signin_box.html.haml_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/views/devise/shared/_signin_box.html.haml_spec.rb b/spec/views/devise/shared/_signin_box.html.haml_spec.rb index 0870b8f09f9..66c064e3fba 100644 --- a/spec/views/devise/shared/_signin_box.html.haml_spec.rb +++ b/spec/views/devise/shared/_signin_box.html.haml_spec.rb @@ -6,6 +6,7 @@ describe 'devise/shared/_signin_box' do stub_devise assign(:ldap_servers, []) allow(view).to receive(:current_application_settings).and_return(Gitlab::CurrentSettings.current_application_settings) + allow(view).to receive(:captcha_enabled?).and_return(false) end it 'is shown when Crowd is enabled' do |