debian-mirror-gitlab/spec/factories/namespaces/project_namespaces.rb

14 lines
399 B
Ruby
Raw Normal View History

2021-11-11 11:23:49 +05:30
# frozen_string_literal: true
FactoryBot.define do
factory :project_namespace, class: 'Namespaces::ProjectNamespace' do
2021-12-11 22:18:48 +05:30
association :project, factory: :project, strategy: :build
2021-11-18 22:05:49 +05:30
parent { project.namespace }
visibility_level { project.visibility_level }
2021-11-11 11:23:49 +05:30
name { project.name }
path { project.path }
type { Namespaces::ProjectNamespace.sti_name }
owner { nil }
end
end