demarches-normaliennes/spec/factories/mail_templates.rb

20 lines
352 B
Ruby
Raw Normal View History

2017-01-24 10:19:42 +01:00
FactoryGirl.define do
factory :mail_template do
object "Object, voila voila"
body "Blabla ceci est mon body"
type 'MailValidated'
trait :dossier_submitted do
type 'MailSubmitted'
end
trait :dossier_refused do
type 'MailRefused'
end
trait :dossier_received do
type 'MailReceived'
end
end
end