François Beausoleil
2005-May-30 19:12 UTC
Testing action mailer in functional tests - missing section in the book
Hi ! I just need a pointer on how to do functional testing of ActionMailer. My unit test for the ActionMailer is working fine - now I simply need to assert that it''s being called in my Controller. The testing book ends quite abruptly at http://manuals.rubyonrails.com/read/chapter/64 I searched around on the web, but I didn''t find anything very conclusive. Thanks, François
François Beausoleil
2005-Jun-07 15:12 UTC
Re: Testing action mailer in functional tests - missing section in the book
Any info on this ? François Beausoleil said the following on 2005-05-30 15:12:> I just need a pointer on how to do functional testing of ActionMailer. > > My unit test for the ActionMailer is working fine - now I simply need to > assert that it''s being called in my Controller. > > The testing book ends quite abruptly at > http://manuals.rubyonrails.com/read/chapter/64 > > I searched around on the web, but I didn''t find anything very conclusive.
Robert Williams
2005-Jun-08 00:43 UTC
Re: Testing action mailer in functional tests - missing section in the book
On 07/06/05, François Beausoleil <fbeausoleil-IQIa899fVSs@public.gmane.org> wrote:> Any info on this ?assert_match %r{E-mail body}, ActionMailer::Base.deliveries[0].body Very bottom of http://dev.rubyonrails.com/file/trunk/actionmailer/test/mail_service_test.rb might be useful!