Make use of fake data in factories
This commit is contained in:
parent
737a9d4808
commit
77e0340387
30 changed files with 96 additions and 77 deletions
|
|
@ -1,8 +1,7 @@
|
|||
FactoryGirl.define do
|
||||
factory :ticket do
|
||||
title 'Business Ticket'
|
||||
title { "#{Faker::Hipster.word} Ticket" }
|
||||
price_cents 1000
|
||||
price_currency 'USD'
|
||||
conference
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue