From 2c0020a2805a84344d350dbca04e3e02f2b75d5c Mon Sep 17 00:00:00 2001 From: Mark Moser Date: Mon, 6 Mar 2017 16:12:31 -0600 Subject: [PATCH] fixed up mailer preview bug --- test/mailers/previews/user_mailer_preview.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/mailers/previews/user_mailer_preview.rb b/test/mailers/previews/user_mailer_preview.rb index 27b0d13..6d632ad 100644 --- a/test/mailers/previews/user_mailer_preview.rb +++ b/test/mailers/previews/user_mailer_preview.rb @@ -3,6 +3,7 @@ class UserMailerPreview < ActionMailer::Preview def password_reset user = User.find_by(email: 'alan.admin@mailinator.com') + user.send(:gen_reset_token) UserMailer.password_reset user end