mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-15 12:44:03 +00:00
Don't use tracks ids in urls Add short_name to tracks and use that in urls as the identifier
9 lines
242 B
Ruby
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
|