Re: RFC: Devel::Mockable and Devel::Mock::Generic::InterfaceTester

2012-10-26 Thread Buddy Burden
David, > Also I think that my code's interface is nicer :-) But we all think that about our interfaces, no? ;-> My personal interface for mocking looks more like this: class Mock::Property { has '_dbh' => ( is => 'ro', default => sub { $Test::Rent::Dbh } );

Re: RFC: Devel::Mockable and Devel::Mock::Generic::InterfaceTester

2012-10-26 Thread David Cantrell
On Fri, Oct 26, 2012 at 03:29:27PM -0700, Karen Etheridge wrote: > On Thu, Oct 25, 2012 at 04:05:05PM +0100, David Cantrell wrote: > > I'm liberating some code that we use at work. A first cut at CPAN- > > ising it is here (yes, I know it has no tests yet): > > https://github.com/DrHyde/perl-Dev

Re: RFC: Devel::Mockable and Devel::Mock::Generic::InterfaceTester

2012-10-26 Thread Karen Etheridge
On Thu, Oct 25, 2012 at 04:05:05PM +0100, David Cantrell wrote: > I'm liberating some code that we use at work. A first cut at CPAN- > ising it is here (yes, I know it has no tests yet): > https://github.com/DrHyde/perl-Devel-Mockable > > What do people think? The aim is to: I just took a qui