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

_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to