Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2017-06-12 11:24:27 +0300
committerClement Ho <ClemMakesApps@gmail.com>2017-06-15 20:15:25 +0300
commit4367671e8a4f9c561979e1a46af4bc2d7c9e6ba6 (patch)
tree2b6b638141f69ac37b8dcb1deb858d7792afd0b6 /spec/controllers
parent9eeff8b37f791aa880f89f0093de2fc8ae78d943 (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/controllers')
-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