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

8 lines
267 B
Ruby
Raw Normal View History

class AdministrateurMailerPreview < ActionMailer::Preview
def activate_before_expiration
2019-02-18 11:56:09 +01:00
administrateur = Administrateur.new(reset_password_sent_at: Time.zone.now)
AdministrateurMailer.activate_before_expiration(administrateur, "a4d4e4f4b4d445")
end
end