diff options
author | Fabio Papa <fabtheman@gmail.com> | 2019-07-01 00:40:23 +0300 |
---|---|---|
committer | Fabio Papa <fabtheman@gmail.com> | 2019-07-19 23:06:50 +0300 |
commit | 95708920ae309a82240d14e4a5bb1bb944085fb3 (patch) | |
tree | 7e09a9b55696cb8eb17c3fe932a7814978c917c8 /spec/models | |
parent | f1fcd64fb7f4dc19ebab44829dc66a5a8f28a096 (diff) |
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/models')
-rw-r--r-- | spec/models/group_spec.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/models/group_spec.rb b/spec/models/group_spec.rb index 9ae18d7bab7..c7fb0f51075 100644 --- a/spec/models/group_spec.rb +++ b/spec/models/group_spec.rb @@ -997,9 +997,8 @@ describe Group do describe 'subgroup_creation_level' do it 'defaults to maintainers' do - group = create (:group) - - expect(group.subgroup_creation_level).to eq(Gitlab::Access::MAINTAINER_SUBGROUP_ACCESS) + expect(group.subgroup_creation_level) + .to eq(Gitlab::Access::MAINTAINER_SUBGROUP_ACCESS) end end end |