[Catalyst] How to handle role checking using a MockObject for
Catalyst contexts
Robert Rothenberg
robrwo at gmail.com
Wed Aug 22 12:22:26 GMT 2012
On 13/08/12 21:17 Wallace Reis wrote:
> 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
It's not very useful for me, since it only includes requests. I need logs
and authentication methods. :(
More information about the Catalyst
mailing list