27 lines
729 B
Ruby
27 lines
729 B
Ruby
class AdministrationMailerPreview < ActionMailer::Preview
|
|
def invite_admin
|
|
AdministrationMailer.invite_admin(administrateur, "12345678", 0)
|
|
end
|
|
|
|
def invite_admin_whose_already_has_an_account
|
|
AdministrationMailer.invite_admin(administrateur, nil, 0)
|
|
end
|
|
|
|
def refuse_admin
|
|
AdministrationMailer.refuse_admin('bad_admin@pipo.com')
|
|
end
|
|
|
|
private
|
|
|
|
def procedure_1
|
|
Procedure.new(id: 10, libelle: "Démarche des marches", administrateurs: [administrateur])
|
|
end
|
|
|
|
def procedure_2
|
|
Procedure.new(id: 20, libelle: "Démarche pieds", administrateurs: [administrateur])
|
|
end
|
|
|
|
def administrateur
|
|
Administrateur.new(id: 111, user: User.new(email: "chef.de.service@administration.gouv.fr"))
|
|
end
|
|
end
|