diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2017-06-12 11:24:27 +0300 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2017-06-12 11:24:27 +0300 |
commit | a4a11b417c2a98841d9805e671121e59949fe982 (patch) | |
tree | d323c16df956e4b3177e524e9613459f55095bd9 /spec | |
parent | c61c3a0877eea1257deda015eca2267bc63e6a28 (diff) | |
parent | a7e82cbd61c613ebd2d6a8efe464400d2da13faf (diff) |
Merge branch 'sh-recaptcha-fix-try2' into 'master'
Make sure reCAPTCHA configuration is loaded when spam checks are initiated
Closes #33532
See merge request !12080
Diffstat (limited to 'spec')
-rw-r--r-- | spec/controllers/projects/issues_controller_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/controllers/projects/issues_controller_spec.rb b/spec/controllers/projects/issues_controller_spec.rb index a38ae2eb990..b65e9e0dfc0 100644 --- a/spec/controllers/projects/issues_controller_spec.rb +++ b/spec/controllers/projects/issues_controller_spec.rb @@ -260,6 +260,7 @@ describe Projects::IssuesController do before { allow_any_instance_of(described_class).to receive(:verify_recaptcha).and_return(false) } it 'rejects an issue recognized as a spam' do + expect(Gitlab::Recaptcha).to receive(:load_configurations!).and_return(true) expect { update_spam_issue }.not_to change{ issue.reload.title } end |