in reply to Re: Easier Mocking?
in thread Easier Mocking?

Maybe Class::DBI::Mock needs to be written. I don't think it's a simple thing, though, given the amount of work that goes on behind the scenes in CDBI and how tightly some of it's coupled to other things.

I think that you could get away with using Class::Accessor to create the CDBI::Mock objects, and then loading them with canned data before returning them to the caller. But I must agree, that the poster would be well served in the long run by setting up a dev database.