Skip to content
Menu
Justin Ball
  • About
  • Privacy Policy
Justin Ball

Category: assert_sent_email

Shoulda, assert_sent_email and Unreal Users

Posted on July 24, 2008November 1, 2021

I have been banging my head against a problem in my testing. Using the UI everything worked as expected, but my tests were failing when I tried to see if emails were being sent in a specific case. Here’s the test I was trying to run using Shoulda: context “reset password for user that has…

Tip for Testing Email with Ruby on Rails and Shoulda

Posted on July 24, 2008November 1, 2021

Shoulda comes with a great method for testing email called ‘assert_sent_email’. (If you try it and get a method missing error update Shoulda. Not that anyone wouldn’t know to just do that). No matter what you use to test email as long as you are in test mode your emails will be placed into an…

©2025 Justin Ball | Powered by SuperbThemes & WordPress