you just want to see the text that you are generating the for the email, make some kind of sanity check on it, just before it hits the email module. I'll check it out.
On 12/16/06, Ash Berlin <[EMAIL PROTECTED]> wrote:
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: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
-- Daniel McBrearty email : danielmcbrearty at gmail.com www.engoi.com : the multi - language vocab trainer BTW : 0873928131 _______________________________________________ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/