Ability to give a statement
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
FactoryGirl.define do
|
||||
factory :publicity do
|
||||
organisation { Faker::Company.name }
|
||||
statement { Faker::Lorem.paragraph }
|
||||
avatar { File.new("#{Rails.root}/spec/support/fixtures/image.jpg") }
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,14 @@
|
||||
FactoryGirl.define do
|
||||
factory :supporter do
|
||||
email { Faker::Internet.email }
|
||||
password { Faker::Lorem.words(8).join }
|
||||
first_name { Faker::Name.first_name }
|
||||
last_name { Faker::Name.last_name }
|
||||
street { Faker::Address.street_name }
|
||||
zip { Faker::Address.zip }
|
||||
city { Faker::Address.city }
|
||||
support { %w(signer supporter).sample }
|
||||
age_category { %w(underage young middle retired).sample }
|
||||
language { %w(de fr it).sample }
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user