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

2012-08-06 Thread Robert Rothenberg
My application has a lot of tests scripts (and even some utility scripts) that create a Test::MockObject that imitates a Catalyst context. But it's largely a kluge, especially for handling authentication with things like $c-check_any_use_role(...) So, what are the best practices for

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

2012-08-06 Thread Tomas Doran
On 6 Aug 2012, at 15:56, Robert Rothenberg wrote: My application has a lot of tests scripts (and even some utility scripts) that create a Test::MockObject that imitates a Catalyst context. But it's largely a kluge, especially for handling authentication with things like