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
1b6711bc
Commit
1b6711bc
authored
Mar 16, 2021
by
Małgorzata Ksionek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add spec with feature flag turned off
parent
7d72ebf6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
spec/controllers/groups_controller_spec.rb
spec/controllers/groups_controller_spec.rb
+16
-0
No files found.
spec/controllers/groups_controller_spec.rb
View file @
1b6711bc
...
...
@@ -343,6 +343,22 @@ RSpec.describe GroupsController, factory_default: :keep do
expect
(
response
).
to
have_gitlab_http_status
(
:found
)
end
context
'with feature flag switched off'
do
before
do
stub_feature_flags
(
recaptcha_on_group_creation:
false
)
end
it
'allows creating a group without the reCAPTCHA'
do
expect
(
described_class
).
not_to
receive
(
:verify_recaptcha
)
expect
do
post
:create
,
params:
{
group:
{
name:
'new_group'
,
path:
"new_group"
}
}
end
.
to
change
{
Group
.
count
}.
by
(
1
)
expect
(
response
).
to
have_gitlab_http_status
(
:found
)
end
end
end
end
...
...
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