diff options
author | Fabio Papa <fabtheman@gmail.com> | 2019-06-30 14:40:23 -0700 |
---|---|---|
committer | Fabio Papa <fabtheman@gmail.com> | 2019-07-19 11:55:48 -0700 |
commit | 81662f7b9fae45689b9291427fd9b192ef88be4b (patch) | |
tree | 161b452c8e6caa6d800f0779151bed7176208810 /spec/requests | |
parent | e962ffbc90b797cc9f1eb922e918c093dac7d4a1 (diff) | |
download | gitlab-ce-81662f7b9fae45689b9291427fd9b192ef88be4b.tar.gz |
Make subgroup_creation_level default to maintainer at SQL level
- Migration updates existing groups to "owner", then sets default to
"maintainer" so that new groups will default to that
- Update spec examples
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 |