gitlabhq/spec/factories/user_teams.rb

10 lines
218 B
Ruby
Raw Normal View History

2013-01-19 18:53:03 +01:00
# 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