demarches-normaliennes/spec/mailers/previews/devise_user_mailer_preview.rb
2018-12-20 17:07:03 +01:00

15 lines
358 B
Ruby

class DeviseUserMailerPreview < ActionMailer::Preview
def confirmation_instructions
DeviseUserMailer.confirmation_instructions(user, "faketoken", {})
end
def reset_password_instructions
DeviseUserMailer.reset_password_instructions(user, "faketoken", {})
end
private
def user
User.new(id: 10, email: "usager@example.com")
end
end