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

8 lines
244 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory :user_namespace, class: 'Namespaces::UserNamespace', parent: :namespace do
sequence(:name) { |n| "user_namespace#{n}" }
type { Namespaces::UserNamespace.sti_name }
end
end