README.rdoc in bjornblomqvist-emailer-0.1.9 vs README.rdoc in bjornblomqvist-emailer-0.1.11
- old
+ new
@@ -36,9 +36,20 @@
:subject => 'Thanks',
:body => 'Mail body.'
) { |success, mail| puts "Sent mail to #{mail[:to]}..." }
queue.process
+== Testing using webrat
+
+ Add middleware to render emails for webrat
+
+ Emailer::SmtpFacade.default = Emailer:MockSmtpFacade.new
+ config.middleware.use "Emailer::MockSmtpFacade"
+
+ Then you can get the url to the last email sent using
+
+ Emailer::SmtpFacade.default.last_email_sent_url
+
== Note on Patches/Pull Requests
* Fork the project.
* Make your feature addition or bug fix.
* Add tests for it. This is important so I don't break it in a