Action Mailer allows you to send emails from your application using mailer classes and views. Mailers work very similarly to controllers.
They inherit from ActionMailer::Base and live in app/mailers, and they have associated views that appear in app/views.
We are going to set up an e-mail to be delivered when a review is created for an item on our review site. To do this in a test driven way, we will start with the test.
###Start with a test & configuring our test environment
- Let's look at this test - we check that the review content is displayed on the page and that we've successfully queued up an email to send.