summaryrefslogtreecommitdiff
path: root/spec/factories/groups.rb
diff options
context:
space:
mode:
authorFabio Papa <fabtheman@gmail.com>2019-06-25 21:59:10 -0700
committerFabio Papa <fabtheman@gmail.com>2019-07-19 11:55:45 -0700
commit7d061212b12a400acfa9c8f34e022e352e77cb64 (patch)
treed5fcfa6d322456099a5c5780ce3b616265c1b570 /spec/factories/groups.rb
parente6e672f049aa887cc4765eb9dfd9f7ac320d5188 (diff)
downloadgitlab-ce-7d061212b12a400acfa9c8f34e022e352e77cb64.tar.gz
Add examples specing the setting to choose who can create subgroups
This setting is at the group level only. The default is specified to be maintainers and owners. **Specs only**, all failing.
Diffstat (limited to 'spec/factories/groups.rb')
-rw-r--r--spec/factories/groups.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/factories/groups.rb b/spec/factories/groups.rb
index 18a0c2ec731..2f50fbfe2fa 100644
--- a/spec/factories/groups.rb
+++ b/spec/factories/groups.rb
@@ -5,6 +5,7 @@ FactoryBot.define do
type 'Group'
owner nil
project_creation_level ::Gitlab::Access::MAINTAINER_PROJECT_ACCESS
+ subgroup_creation_level ::Gitlab::Access::OWNER_SUBGROUP_ACCESS
after(:create) do |group|
if group.owner