debian-mirror-gitlab/spec/factories/namespaces.rb
2016-06-02 11:05:42 +05:30

7 lines
153 B
Ruby

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