demarches-normaliennes/spec/factories/mail_templates.rb

15 lines
594 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.

FactoryGirl.define do
factory :mail_template, class: Mails::ClosedMail do
object "Object, voila voila"
body "Blabla ceci est mon body"
factory :dossier_submitted_mail_template, class: Mails::ReceivedMail
factory :dossier_refused_mail_template, class: Mails::RefusedMail
factory :dossier_en_instruction_mail_template, class: Mails::InitiatedMail do
object "[TPS] 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