demarches-normaliennes/spec/mailers/previews/administrateur_mailer_preview.rb
2022-08-24 13:10:48 +02:00

13 lines
484 B
Ruby

class AdministrateurMailerPreview < ActionMailer::Preview
def activate_before_expiration
administrateur = Administrateur.new(reset_password_sent_at: Time.zone.now)
AdministrateurMailer.activate_before_expiration(administrateur, "a4d4e4f4b4d445")
end
def notify_procedure_expires_when_termine_forced
email = Administrateur.first.email
procedure = Procedure.first
AdministrateurMailer.notify_procedure_expires_when_termine_forced(email, procedure)
end
end