demarches-normaliennes/spec/mailers/previews/administrateur_mailer_preview.rb

20 lines
613 B
Ruby
Raw Normal View History

class AdministrateurMailerPreview < ActionMailer::Preview
def activate_before_expiration
2022-10-06 11:15:48 +02:00
user = User.new(reset_password_sent_at: Time.zone.now)
2022-10-06 11:15:48 +02:00
AdministrateurMailer.activate_before_expiration(user, "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
def api_token_expiration
user = User.last
tokens = [APIToken.last, APIToken.last]
AdministrateurMailer.api_token_expiration(user, tokens)
end
end