demarches-normaliennes/spec/mailers/previews/administration_mailer_preview.rb
2018-01-29 11:08:19 +01:00

13 lines
502 B
Ruby

class AdministrationMailerPreview < ActionMailer::Preview
def dubious_procedures
procedures_and_champs = [
[Procedure.first, [TypeDeChamp.new(libelle: 'iban'), TypeDeChamp.new(libelle: 'religion')]],
[Procedure.last, [TypeDeChamp.new(libelle: 'iban'), TypeDeChamp.new(libelle: 'numéro de carte bleu')]]
]
AdministrationMailer.dubious_procedures(procedures_and_champs)
end
def invite_admin
AdministrationMailer.invite_admin(Administrateur.last, "12345678")
end
end