2018-11-20 11:57:51 +01:00
|
|
|
|
class UserMailerPreview < ActionMailer::Preview
|
2018-05-23 11:27:33 +02:00
|
|
|
|
def new_account_warning
|
2018-12-20 16:49:56 +01:00
|
|
|
|
UserMailer.new_account_warning(user)
|
|
|
|
|
end
|
|
|
|
|
|
2020-02-11 18:17:09 +01:00
|
|
|
|
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
|
|
|
|
|
|
2019-07-09 17:08:27 +02:00
|
|
|
|
def account_already_taken
|
|
|
|
|
UserMailer.account_already_taken(user, 'dircab@territoires.gouv.fr')
|
|
|
|
|
end
|
|
|
|
|
|
2018-12-20 16:49:56 +01:00
|
|
|
|
private
|
|
|
|
|
|
|
|
|
|
def user
|
|
|
|
|
User.new(id: 10, email: 'test@exemple.fr')
|
2018-05-23 11:27:33 +02:00
|
|
|
|
end
|
|
|
|
|
end
|