diff options
author | Fabio Papa <fabtheman@gmail.com> | 2019-06-16 23:22:12 +0300 |
---|---|---|
committer | Fabio Papa <fabtheman@gmail.com> | 2019-07-19 21:55:45 +0300 |
commit | e6e672f049aa887cc4765eb9dfd9f7ac320d5188 (patch) | |
tree | 9015d124626e4661c7edf3c3d85ef61d1a36d79a /spec/requests | |
parent | 11f998d9f250bf63abdebc1e0934b39d62f349f6 (diff) |
Modify API spec to expect a maintainer to be able to create subgroup
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/api/groups_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/api/groups_spec.rb b/spec/requests/api/groups_spec.rb index c41408fba65..52d926d5484 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 'cannot create subgroups' do + it 'can create subgroups' do post api("/groups", user1), params: { parent_id: group2.id, name: 'foo', path: 'foo' } - expect(response).to have_gitlab_http_status(403) + expect(response).to have_gitlab_http_status(201) end end end |