summaryrefslogtreecommitdiff
path: root/spec/requests
diff options
context:
space:
mode:
authorFabio Papa <fabtheman@gmail.com>2019-06-28 13:31:47 -0700
committerFabio Papa <fabtheman@gmail.com>2019-07-19 12:06:56 -0700
commit97b1f48e97383648946c985eef8e8a29c307b05e (patch)
tree06ca1f822bf3086870865cbb1de4a79c9af566ac /spec/requests
parent02b1235046e1a78d4c43476a1716b6464bb647d1 (diff)
downloadgitlab-ce-97b1f48e97383648946c985eef8e8a29c307b05e.tar.gz
Style rules; Revert some examples
Diffstat (limited to 'spec/requests')
-rw-r--r--spec/requests/api/groups_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/api/groups_spec.rb b/spec/requests/api/groups_spec.rb
index 52d926d5484..c41408fba65 100644
--- a/spec/requests/api/groups_spec.rb
+++ b/spec/requests/api/groups_spec.rb
@@ -803,10 +803,10 @@ describe API::Groups do
group2.add_maintainer(user1)
end
- it 'can create subgroups' do
+ it 'cannot create subgroups' do
post api("/groups", user1), params: { parent_id: group2.id, name: 'foo', path: 'foo' }
- expect(response).to have_gitlab_http_status(201)
+ expect(response).to have_gitlab_http_status(403)
end
end
end