On Tue, Sep 26, 2006 at 06:13:11 -0700, Ovid wrote:
> unless ( defined &Test::More::ok ) { send_email(@args) }
What about
$some_object->send_email(@args);
and having your test code:
a. replace the object (probably a singleton or an obj in a
global) with a mock object that doesn't actually send email
b. also test that send_email is being called when appropriate
--
Yuval Kogman <[EMAIL PROTECTED]>
http://nothingmuch.woobling.org 0xEBD27418
pgpRLfNaMNA86.pgp
Description: PGP signature
