demarches-normaliennes/spec/factories/mail_templates.rb
2018-02-28 18:14:06 +01:00

17 lines
637 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"
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