Ability to give a statement

This commit is contained in:
2017-04-13 17:16:03 +02:00
parent b30bd91f3d
commit dd5e22ea48
66 changed files with 812 additions and 25 deletions
+7
View File
@@ -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
+14
View File
@@ -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