Make use of fake data in factories

This commit is contained in:
Henne Vogelsang 2016-04-30 17:56:23 +02:00
parent 737a9d4808
commit 77e0340387
30 changed files with 96 additions and 77 deletions

View file

@ -1,9 +1,7 @@
FactoryGirl.define do
factory :track do
name 'Example Track'
description 'Lorem Ipsum dolsum'
color '#ffffff'
program
name { Faker::Commerce.department(2, true) }
description { Faker::Lorem.sentence }
color { Faker::Color.hex_color }
end
end