Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Papa <fabtheman@gmail.com>2019-06-29 02:12:54 +0300
committerFabio Papa <fabtheman@gmail.com>2019-07-19 21:55:47 +0300
commite962ffbc90b797cc9f1eb922e918c093dac7d4a1 (patch)
tree9eaf07d7bb80b3ae81412744a0cba9ab2f9127dc /spec/models/group_spec.rb
parentd32ed9297c5356393dc8a7644786a12078519496 (diff)
Make maintainers the default setting for creating subgroups
Diffstat (limited to 'spec/models/group_spec.rb')
-rw-r--r--spec/models/group_spec.rb8
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