Tests and suppression

When you are testing your application, or if you are in a development environment, it’s useful to be able to suppress email sending. Still, you may want to test some message was generated in your code, and you want to catch it.

The mailer provide a store_mails method for this, so you can just write down: