gitlab-org--gitlab-foss/spec/factories/namespaces.rb
2016-03-04 15:26:51 -05:00

7 lines
153 B
Ruby

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