diff options
Diffstat (limited to 'spec/factories/namespaces')
-rw-r--r-- | spec/factories/namespaces/project_namespaces.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/factories/namespaces/project_namespaces.rb b/spec/factories/namespaces/project_namespaces.rb new file mode 100644 index 00000000000..10b86f48090 --- /dev/null +++ b/spec/factories/namespaces/project_namespaces.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +FactoryBot.define do + factory :project_namespace, class: 'Namespaces::ProjectNamespace' do + project + name { project.name } + path { project.path } + type { Namespaces::ProjectNamespace.sti_name } + owner { nil } + parent factory: :group + end +end |