demarches-normaliennes/spec/factories/email_event.rb

12 lines
253 B
Ruby

FactoryBot.define do
factory :email_event do
to { "user@email.com" }
subject { "Thank you" }
processed_at { Time.zone.now }
status { "dispatched" }
trait :dolist do
add_attribute(:method) { "dolist_smtp" }
end
end
end