demarches-normaliennes/spec/factories/email_event.rb

15 lines
284 B
Ruby
Raw Normal View History

# frozen_string_literal: true
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