Re: use mocked

2007-02-23 Thread Ovid
--- Luke Closs <[EMAIL PROTECTED]> wrote: > On 2/22/07, Ovid <[EMAIL PROTECTED]> wrote: > > > > Telling me "you can only use t/lib for mocked modules" > > > Woah, dude. mocked.pm loads mocked modules from t/lib. You can use > t/lib > for whatever else you want. > > So you could keep your exis

Re: use mocked

2007-02-23 Thread Dominique Quatravaux
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Luke Closs wrote: > > use lib 't/lib'; use LWP::Simple; # this is a mocked library [...] > use mocked 'LWP::Simple'; And, uh, how about this: use lib 't'; use mock::LWP::Simple; with the following directory layout: t lib Test Exception.

Re: use mocked

2007-02-23 Thread A. Pagaltzis
* Dominique Quatravaux <[EMAIL PROTECTED]> [2007-02-23 11:35]: > And, uh, how about this: > > use lib 't'; > use mock::LWP::Simple; That will not call the importer in the right package. Regards, -- Aristotle Pagaltzis //

Re: use mocked

2007-02-23 Thread Luke Closs
On 2/23/07, A. Pagaltzis <[EMAIL PROTECTED]> wrote: * Dominique Quatravaux <[EMAIL PROTECTED]> [2007-02-23 11:35]: > And, uh, how about this: > > use lib 't'; > use mock::LWP::Simple; That will not call the importer in the right package. To expand on this answer, without funky voodoo, after