summaryrefslogtreecommitdiff
path: root/spec/factories/groups.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/factories/groups.rb')
-rw-r--r--spec/factories/groups.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/factories/groups.rb b/spec/factories/groups.rb
index 60d427dde00..17db69e4699 100644
--- a/spec/factories/groups.rb
+++ b/spec/factories/groups.rb
@@ -14,6 +14,8 @@ FactoryBot.define do
# https://gitlab.com/gitlab-org/gitlab-foss/issues/43292
raise "Don't set owner for groups, use `group.add_owner(user)` instead"
end
+
+ create(:namespace_settings, namespace: group)
end
trait :public do
@@ -21,7 +23,7 @@ FactoryBot.define do
end
trait :internal do
- visibility_level {Gitlab::VisibilityLevel::INTERNAL }
+ visibility_level { Gitlab::VisibilityLevel::INTERNAL }
end
trait :private do