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

11 lines
201 B
Ruby

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