[Catalyst] C::P::Email and testing
Ash Berlin
ash at cpan.org
Sat Dec 16 22:54:21 GMT 2006
Daniel McBrearty wrote:
> if you have an action that sends an email, how do you write tests for it?
>
> perhaps print the email to a temp file in test mode? what do you guys do?
>
Send it to a locally delivered address and check the mbox? use Net::IMAP
module.
It depends what you want to check - but I'd avoid testing other ppls
code - assume they are right unless you have a good reason not to.
Ash
More information about the Catalyst
mailing list