gitlab-org--gitlab-foss/spec/factories/namespaces/project_namespaces.rb

14 lines
399 B
Ruby
Raw Normal View History

# frozen_string_literal: true
FactoryBot.define do
factory :project_namespace, class: 'Namespaces::ProjectNamespace' do
association :project, factory: :project, strategy: :build
parent { project.namespace }
visibility_level { project.visibility_level }
name { project.name }
path { project.path }
type { Namespaces::ProjectNamespace.sti_name }
owner { nil }
end
end