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-26 07:59:10 +0300
committerFabio Papa <fabtheman@gmail.com>2019-07-19 22:06:56 +0300
commit396926bbe4182d415e8aa129f45bc1c8ba9e4694 (patch)
tree06675feeca51b8a666a2060e0edf202b648c3fe3 /spec/factories/groups.rb
parentdc65d4f36cb5d0ae1ce0f1c6c1a1a646f1e0cb99 (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.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