Module: MailControllerTestHelper

Module | MailControllerTestHelper
In: | lib/generators/templates/mailer/spec/mailers/%file_name%_mailer_spec.rb

Move this to your spec_helper.rb.

### Methods

clear_mail_deliveries deliver last_delivered_mail

### Public Instance methods

clear_mail_deliveries()

Helper to clear mail deliveries.

deliver(action, mail_params = {}, send_params = {})

Helper to deliver

last_delivered_mail()

Helper to access last delivered mail. In test mode merb-mailer puts email to collection accessible as Merb::Mailer.deliveries.

[Validate]