spec/mailers/previews/user_preview.rb
# Preview all emails at http://localhost:3000/rails/mailers/user
class UserPreview < ActionMailer::Preview
def welcome_email
UserMailer.welcome_email(User.first)
end
def password_reset
UserMailer.password_reset(User.first, "just_an_example")
end
end