Welcome to mirror list, hosted at ThFree Co, Russian Federation.

project_namespaces.rb « namespaces « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6bf17088741f5c8cbb1b743bbf87d42287ac3998 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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