diff options
author | Fabio Papa <fabtheman@gmail.com> | 2019-06-26 07:59:10 +0300 |
---|---|---|
committer | Fabio Papa <fabtheman@gmail.com> | 2019-07-19 22:32:20 +0300 |
commit | 720dded1d54a0bae7262e2477b744cd04f0635c1 (patch) | |
tree | 85ad3e6f3dad2f83bbc182c01d42076e61430ac6 /spec/factories/groups.rb | |
parent | 014e11b86f3659f36bb109b440831ffe6a54b730 (diff) |
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.rb | 1 |
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 |