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
13
spec/factories/contacts.rb
Normal file
13
spec/factories/contacts.rb
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
FactoryGirl.define do
|
||||
factory :contact do
|
||||
social_tag { SecureRandom.urlsafe_base64(4) }
|
||||
email { Faker::Internet.email }
|
||||
sponsor_email { Faker::Internet.email }
|
||||
facebook { Faker::Internet.url('facebook.com') }
|
||||
googleplus { Faker::Internet.url('plus.google.com') }
|
||||
twitter { Faker::Internet.url('twitter.com') }
|
||||
instagram { Faker::Internet.url('instagram.com') }
|
||||
|
||||
conference
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue