Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c2f3ac73
Commit
c2f3ac73
authored
Sep 06, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
fc95bf76
fd515cca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
8 deletions
+2
-8
locale/gitlab.pot
locale/gitlab.pot
+1
-1
spec/controllers/registrations_controller_spec.rb
spec/controllers/registrations_controller_spec.rb
+1
-7
No files found.
locale/gitlab.pot
View file @
c2f3ac73
...
...
@@ -2674,7 +2674,7 @@ msgstr ""
msgid "Change Weight"
msgstr ""
msgid "Change
assignee
"
msgid "Change
label
"
msgstr ""
msgid "Change assignee(s)"
...
...
spec/controllers/registrations_controller_spec.rb
View file @
c2f3ac73
...
...
@@ -74,11 +74,6 @@ describe RegistrationsController do
end
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
stub_application_setting
(
recaptcha_enabled:
true
)
end
...
...
@@ -91,7 +86,7 @@ describe RegistrationsController do
end
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
)
...
...
@@ -107,7 +102,6 @@ describe RegistrationsController do
it
'does not require reCAPTCHA if disabled by feature flag'
do
stub_feature_flags
(
registrations_recaptcha:
false
)
fail_recaptcha
post
(
:create
,
params:
user_params
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment