Commit c2f3ac73 authored by GitLab Bot's avatar GitLab Bot

Automatic merge of gitlab-org/gitlab-ce master

parents fc95bf76 fd515cca
...@@ -2674,7 +2674,7 @@ msgstr "" ...@@ -2674,7 +2674,7 @@ msgstr ""
msgid "Change Weight" msgid "Change Weight"
msgstr "" msgstr ""
msgid "Change assignee" msgid "Change label"
msgstr "" msgstr ""
msgid "Change assignee(s)" msgid "Change assignee(s)"
......
...@@ -74,11 +74,6 @@ describe RegistrationsController do ...@@ -74,11 +74,6 @@ describe RegistrationsController do
end end
context 'when reCAPTCHA is enabled' do context 'when reCAPTCHA is enabled' do
def fail_recaptcha
# Without this, `verify_recaptcha` arbitrarily returns true in test env
Recaptcha.configuration.skip_verify_env.delete('test')
end
before do before do
stub_application_setting(recaptcha_enabled: true) stub_application_setting(recaptcha_enabled: true)
end end
...@@ -91,7 +86,7 @@ describe RegistrationsController do ...@@ -91,7 +86,7 @@ describe RegistrationsController do
end end
it 'displays an error when the reCAPTCHA is not solved' do it 'displays an error when the reCAPTCHA is not solved' do
fail_recaptcha allow_any_instance_of(described_class).to receive(:verify_recaptcha).and_return(false)
post(:create, params: user_params) post(:create, params: user_params)
...@@ -107,7 +102,6 @@ describe RegistrationsController do ...@@ -107,7 +102,6 @@ describe RegistrationsController do
it 'does not require reCAPTCHA if disabled by feature flag' do it 'does not require reCAPTCHA if disabled by feature flag' do
stub_feature_flags(registrations_recaptcha: false) stub_feature_flags(registrations_recaptcha: false)
fail_recaptcha
post(:create, params: user_params) post(:create, params: user_params)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment