[Catalyst] faking $c->user in tests
Daniel McBrearty
danielmcbrearty at gmail.com
Sat Jan 13 17:39:36 GMT 2007
in test scripts I am able to (for instance) mess with the config my doing
my $config = MyApp->config;
$config->{some_val} = 'test value';
given that I am happy that my Authentication code is well tested in
some other test script, is there a way to somehow bypass it, forcing
calls to $c->user_exists and $c->user in the module I'm testing to
return values which I directly control in the test script?
thanks
Daniel
--
Daniel McBrearty
email : danielmcbrearty at gmail.com
www.engoi.com : the multi - language vocab trainer
BTW : 0873928131
More information about the Catalyst
mailing list