2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-01-05 11:16:50 +01:00
|
|
|
class AdministrationMailerPreview < ActionMailer::Preview
|
2018-01-24 18:15:06 +01:00
|
|
|
def invite_admin
|
2024-03-19 17:17:44 +01:00
|
|
|
AdministrationMailer.invite_admin(administrateur, "12345678")
|
2018-01-24 18:15:06 +01:00
|
|
|
end
|
2018-03-27 13:52:34 +02:00
|
|
|
|
2019-11-05 09:37:53 +01:00
|
|
|
def invite_admin_whose_already_has_an_account
|
2024-03-19 17:17:44 +01:00
|
|
|
AdministrationMailer.invite_admin(administrateur, nil)
|
2019-11-05 09:37:53 +01:00
|
|
|
end
|
|
|
|
|
2018-03-27 13:52:34 +02:00
|
|
|
def refuse_admin
|
|
|
|
AdministrationMailer.refuse_admin('bad_admin@pipo.com')
|
|
|
|
end
|
2018-12-20 16:46:44 +01:00
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def procedure_1
|
2019-06-20 04:24:22 +02:00
|
|
|
Procedure.new(id: 10, libelle: "Démarche des marches", administrateurs: [administrateur])
|
2018-12-20 16:46:44 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
def procedure_2
|
2019-06-20 04:24:22 +02:00
|
|
|
Procedure.new(id: 20, libelle: "Démarche pieds", administrateurs: [administrateur])
|
2018-12-20 16:46:44 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
def administrateur
|
2020-02-03 11:09:54 +01:00
|
|
|
Administrateur.new(id: 111, user: User.new(email: "chef.de.service@administration.gouv.fr"))
|
2018-12-20 16:46:44 +01:00
|
|
|
end
|
2018-01-05 11:16:50 +01:00
|
|
|
end
|