demarches-normaliennes/spec/mailers/previews/user_mailer_preview.rb
2019-07-10 11:31:09 +02:00

15 lines
309 B
Ruby

class UserMailerPreview < ActionMailer::Preview
def new_account_warning
UserMailer.new_account_warning(user)
end
def account_already_taken
UserMailer.account_already_taken(user, 'dircab@territoires.gouv.fr')
end
private
def user
User.new(id: 10, email: 'test@exemple.fr')
end
end