demarches-normaliennes/spec/factories/individual.rb

26 lines
510 B
Ruby
Raw Normal View History

2018-01-23 17:15:42 +01:00
FactoryBot.define do
2017-01-03 12:53:27 +01:00
factory :individual do
2018-09-04 16:46:48 +02:00
gender { 'M.' }
nom { 'Julien' }
prenom { 'Xavier' }
birthdate { Date.new(1991, 11, 01) }
association :dossier
trait :empty do
gender { nil }
nom { nil }
prenom { nil }
birthdate { nil }
end
trait :with_notification do
notification_method { :email }
email { 'julien.xavier@test.com' }
end
trait :without_notification do
notification_method { :no_notification }
end
2017-01-03 12:53:27 +01:00
end
end