gitlabhq/spec/factories/user_teams.rb
2013-01-24 22:31:24 +02:00

9 lines
218 B
Ruby

# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :user_team do
sequence(:name) { |n| "team#{n}" }
path { name.downcase.gsub(/\s/, '_') }
owner
end
end