demarches-normaliennes/spec/mailers/previews/user_mailer_preview.rb

21 lines
523 B
Ruby
Raw Normal View History

class UserMailerPreview < ActionMailer::Preview
def new_account_warning
UserMailer.new_account_warning(user)
end
def new_account_warning___with_procedure
procedure = Procedure.new(libelle: 'Dotation dÉquipement des Territoires Ruraux - Exercice 2019', path: 'dotation-etr')
UserMailer.new_account_warning(user, procedure)
end
2021-10-26 13:36:14 +02:00
def ask_for_merge
UserMailer.ask_for_merge(user, 'dircab@territoires.gouv.fr')
end
private
def user
User.new(id: 10, email: 'test@exemple.fr')
end
end