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,13 +1,14 @@
|
|||
# Read about factories at https://github.com/thoughtbot/factory_girl
|
||||
FactoryGirl.define do
|
||||
factory :venue do
|
||||
name 'Suse Office'
|
||||
street 'Maxfeldstrasse 5'
|
||||
city 'Nuremberg'
|
||||
postalcode '90489'
|
||||
country 'DE'
|
||||
website 'www.opensuse.org'
|
||||
description 'Lorem Ipsum Dolor'
|
||||
name { "#{Faker::Company.name} Office" }
|
||||
street { Faker::Address.street_address }
|
||||
city { Faker::Address.city }
|
||||
postalcode { Faker::Address.postcode }
|
||||
country { Faker::Address.country_code }
|
||||
website { Faker::Internet.url }
|
||||
description { Faker::Lorem.sentence }
|
||||
|
||||
conference
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue