Testing ActionMailer with Cucumber

3 views
Skip to first unread message

Peter Laurens

unread,
Mar 6, 2011, 11:59:44 AM3/6/11
to rubyonra...@googlegroups.com
Hi,

I'm after some high-level advice on testing ActionMailer events with
Cucumber. I want to write a test which ensures that an email has been
sent when an action takes place. Is it normal to do this with the
ActionMailer running in a test delivery_method? How do others write
their tests to ensure that email notifications really are being sent out
properly by ActionMailer?

Would writing a test which actually tested that email had been sent by
pulling from an IMAP server be too much like testing basic Rails
functionality?

Thanks for the advice!

--
Posted via http://www.ruby-forum.com/.

Reply all
Reply to author
Forward
0 new messages