demarches-normaliennes/spec/mailers/previews/notification_mailer_preview.rb
Frederic Merizen cce00e19c6 [#1972] Avoid passing unsaved templates to ActionMailer
So that all mail arguments can be serialized
2018-05-28 12:02:13 +02:00

9 lines
253 B
Ruby

class NotificationMailerPreview < ActionMailer::Preview
def send_notification
NotificationMailer.send_initiated_notification(Dossier.last)
end
def send_draft_notification
NotificationMailer.send_draft_notification(Dossier.last)
end
end