[Catalyst] unit testing with MockObject

Daniel McBrearty danielmcbrearty at gmail.com
Mon Jun 5 11:54:36 CEST 2006


in this case it probably makes sense to move it, as the functions are
quite tightly bound.

how do I get access to the $c in the test though? via $mech? I
huyaven't been able to figure this as yet.


On 6/4/06, Matt S Trout <dbix-class at trout.me.uk> wrote:
> Daniel McBrearty wrote:
> > good question ... I have an auto action in the root controller which
> > redirects unless the request is to public/home OR (some other stuff).
> >
> > Maybe I should move that action into Root.
>
> Or test that by mocking the $c ...
>
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
>


-- 
Daniel McBrearty
email : danielmcbrearty at gmail.com
www.engoi.com : the multi - language vocab trainer
BTW : 0873928131



More information about the Catalyst mailing list