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) }
|
2020-07-20 16:53:25 +02:00
|
|
|
association :dossier
|
2021-11-19 13:48:52 +01:00
|
|
|
|
|
|
|
trait :empty do
|
|
|
|
gender { nil }
|
|
|
|
nom { nil }
|
|
|
|
prenom { nil }
|
|
|
|
birthdate { nil }
|
|
|
|
end
|
2023-11-23 10:35:31 +01:00
|
|
|
|
|
|
|
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
|