debian-mirror-gitlab/spec/factories/namespaces.rb
2018-03-17 18:26:18 +05:30

7 lines
152 B
Ruby

FactoryBot.define do
factory :namespace do
sequence(:name) { |n| "namespace#{n}" }
path { name.downcase.gsub(/\s/, '_') }
owner
end
end