Forum: Ruby on Rails Testing ActionMailer with Cucumber

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
05f3e30611c7d1b4ad003f15ce0fc99e?d=identicon&s=25 Peter Laurens (nexum)
on 2011-03-06 17:59
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!
This topic is locked and can not be replied to.