2018-01-23 17:15:42 +01:00
|
|
|
|
FactoryBot.define do
|
2018-01-08 17:48:08 +01:00
|
|
|
|
factory :closed_mail, class: Mails::ClosedMail do
|
2018-09-04 16:46:48 +02:00
|
|
|
|
subject { "Subject, voila voila" }
|
|
|
|
|
body { "Blabla ceci est mon body" }
|
2020-07-20 17:25:17 +02:00
|
|
|
|
association :procedure
|
2017-01-24 10:19:42 +01:00
|
|
|
|
|
2018-01-08 17:48:08 +01:00
|
|
|
|
factory :received_mail, class: Mails::ReceivedMail
|
2017-01-24 10:19:42 +01:00
|
|
|
|
|
2018-01-08 17:48:08 +01:00
|
|
|
|
factory :refused_mail, class: Mails::RefusedMail
|
2017-01-24 10:19:42 +01:00
|
|
|
|
|
2018-01-08 17:48:08 +01:00
|
|
|
|
factory :without_continuation_mail, class: Mails::WithoutContinuationMail
|
|
|
|
|
|
|
|
|
|
factory :initiated_mail, class: Mails::InitiatedMail do
|
2018-09-04 16:46:48 +02:00
|
|
|
|
subject { "[demarches-simplifiees.fr] Accusé de réception pour votre dossier nº --numéro du dossier--" }
|
|
|
|
|
body { "Votre administration vous confirme la bonne réception de votre dossier nº --numéro du dossier--" }
|
2017-01-24 10:19:42 +01:00
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|