summaryrefslogtreecommitdiff
path: root/spec/factories
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 12:06:55 -0700
commit02b1235046e1a78d4c43476a1716b6464bb647d1 (patch)
tree33cc352f32e34a44ff5fdc73f858f09b6bd9e093 /spec/factories
parentc22e87121e029bb79aa09f2d04010d738545c7f9 (diff)
downloadgitlab-ce-02b1235046e1a78d4c43476a1716b6464bb647d1.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')
-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 b67ab955ffc..947392b4fbc 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