Sooner of later your Ruby on Rails application will get to the level of maturity, which will require you to implement email notifications for a really complex model layer changes. And that will rise a problems of both development database pollution and code duplication between specs and mailer previews.
Let’s see how we can solve both of the problems with few simple changes to the Mailer preview layer of your Rails application.