[Catalyst] C::P::Email and testing

Daniel McBrearty danielmcbrearty at gmail.com
Sun Dec 17 05:37:34 GMT 2006


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 <ash at cpan.org> 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 at 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



More information about the Catalyst mailing list