[Catalyst] How to handle role checking using a MockObject for Catalyst contexts

Wallace Reis wallace at reis.me
Mon Aug 13 20:17:00 GMT 2012


On Aug 07, 2012, at 11:42 AM, Robert Rothenberg wrote:
>> Personally, latterly, I've just been using Moose directly when I want to mock a class:
>> 
>> Moose::Meta::Class->create(….

And I love MX::Declare syntax sugar over this. ;)

Btw, there is another useful module out there:

https://metacpan.org/module/CatalystX::Test::MockContext

Cheers,

--
Wallace Reis | wreis
wallace at reis.me
http://www.about.me/wallacereis


More information about the Catalyst mailing list