Commit 6d3752fe authored by Małgorzata Ksionek's avatar Małgorzata Ksionek

Add namespace settings to groups factory

parent 340384fe
...@@ -7,7 +7,6 @@ FactoryBot.define do ...@@ -7,7 +7,6 @@ FactoryBot.define do
type { 'Group' } type { 'Group' }
owner { nil } owner { nil }
project_creation_level { ::Gitlab::Access::MAINTAINER_PROJECT_ACCESS } project_creation_level { ::Gitlab::Access::MAINTAINER_PROJECT_ACCESS }
association :namespace_settings, factory: :namespace_settings
after(:create) do |group| after(:create) do |group|
if group.owner if group.owner
...@@ -24,7 +23,7 @@ FactoryBot.define do ...@@ -24,7 +23,7 @@ FactoryBot.define do
end end
trait :internal do trait :internal do
visibility_level { Gitlab::VisibilityLevel::INTERNAL } visibility_level {Gitlab::VisibilityLevel::INTERNAL }
end end
trait :private do trait :private do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment