diff options
author | Fabio Papa <fabtheman@gmail.com> | 2019-06-28 16:12:54 -0700 |
---|---|---|
committer | Fabio Papa <fabtheman@gmail.com> | 2019-07-19 13:00:05 -0700 |
commit | f1fcd64fb7f4dc19ebab44829dc66a5a8f28a096 (patch) | |
tree | ec53828258fdaa628df75fdb9e6689647ebfad3d /spec/models/group_spec.rb | |
parent | 45668ed02370b617d2f8538d61eaa58bda6e39ca (diff) | |
download | gitlab-ce-f1fcd64fb7f4dc19ebab44829dc66a5a8f28a096.tar.gz |
Make maintainers the default setting for creating subgroups
Diffstat (limited to 'spec/models/group_spec.rb')
-rw-r--r-- | spec/models/group_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/models/group_spec.rb b/spec/models/group_spec.rb index 470ce65707d..9ae18d7bab7 100644 --- a/spec/models/group_spec.rb +++ b/spec/models/group_spec.rb @@ -994,4 +994,12 @@ describe Group do expect(group.project_creation_level).to eq(Gitlab::CurrentSettings.default_project_creation) end end + + 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) + end + end end |