demarches-normaliennes/spec/factories/mail_templates.rb
2020-08-18 15:57:37 +02:00

18 lines
680 B
Ruby
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FactoryBot.define do
factory :closed_mail, class: Mails::ClosedMail do
subject { "Subject, voila voila" }
body { "Blabla ceci est mon body" }
association :procedure
factory :received_mail, class: Mails::ReceivedMail
factory :refused_mail, class: Mails::RefusedMail
factory :without_continuation_mail, class: Mails::WithoutContinuationMail
factory :initiated_mail, class: Mails::InitiatedMail do
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--" }
end
end
end