summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2017-06-12 08:24:27 +0000
committerClement Ho <ClemMakesApps@gmail.com>2017-06-15 12:15:25 -0500
commit4367671e8a4f9c561979e1a46af4bc2d7c9e6ba6 (patch)
tree2b6b638141f69ac37b8dcb1deb858d7792afd0b6 /spec
parent9eeff8b37f791aa880f89f0093de2fc8ae78d943 (diff)
downloadgitlab-ce-4367671e8a4f9c561979e1a46af4bc2d7c9e6ba6.tar.gz
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.rb1
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