[Catalyst] unit testing with MockObject

Matt S Trout dbix-class at trout.me.uk
Sat Jun 3 18:19:03 CEST 2006


Daniel McBrearty wrote:
> now I have this :
> 
> BEGIN {
>     my $mock = Test::MockObject->new;
>     $mock->fake_module('Engoi::Controller::Public');
>     $mock->set_true('home');
>     use_ok('Catalyst::Test', 'Engoi');
>     Engoi->components->{'Controller::Public'} = $mock;
> }
> 
> but I still have my errors as before, and the mock object is not being
> used by Cat.

balls.

Engoi->components->{'Engoi::Controller::Public'} = $mock;



More information about the Catalyst mailing list