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