osem-fcy/spec/factories/tracks.rb
AEtherC0r3 95fbd10153 Friendly urls for tracks
Don't use tracks ids in urls
Add short_name to tracks and use that in urls as the identifier
2017-07-04 20:42:10 +03:00

9 lines
242 B
Ruby

FactoryGirl.define do
factory :track do
name { Faker::Commerce.department(2, true) }
description { Faker::Lorem.sentence }
color { Faker::Color.hex_color }
short_name { SecureRandom.urlsafe_base64(5) }
program
end
end