it works fine.
when I run with 'make test' though I get a lot of
Use of uninitialized value in pattern match (m//) at
/usr/local/lib/perl5/site_perl/5.8.8/HTTP/Cookies.pm line 45
which seems to be to do with this in HTTP::Cookies
sub add_cookie_header
{
my $self = shift;
my $request = sh
On 1/13/07, Daniel McBrearty <[EMAIL PROTECTED]> wrote:
I wanted to see carp/warn errors in the debug output, so I installed
http://search.cpan.org/~jrockway/Catalyst-Plugin-LogWarnings-0.02/lib/Catalyst/Plugin/LogWarnings.pm
it seemed to have a lot of prerequisites, I just let it install them
Daniel McBrearty wrote:
heh ... cheers ... think I've sussed it :
my $ue = 1;
my $username = 'NotAnAdmin';
use Test::MockObject;
my $user = Test::MockObject->new;
$user->mock( 'id',
sub {return $username} );
package MyApp;
sub user {
return $user;
}
sub user_exists {
return $ue
heh ... cheers ... think I've sussed it :
my $ue = 1;
my $username = 'NotAnAdmin';
use Test::MockObject;
my $user = Test::MockObject->new;
$user->mock( 'id',
sub {return $username} );
package MyApp;
sub user {
return $user;
}
sub user_exists {
return $ue;
}
package main;
...
a
Daniel McBrearty wrote:
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, for
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_ex
Hi,
If I do:
perl TranzactiiBursiere.pm
it gives the error below.
However, if I access the application in the browser, it works fine.
Couldn't instantiate component "TranzactiiBursiere::Model::Db", "Can't
locate object method "compose_namespace" via package "Db" (perhaps you
forgot to load "
I wanted to see carp/warn errors in the debug output, so I installed
http://search.cpan.org/~jrockway/Catalyst-Plugin-LogWarnings-0.02/lib/Catalyst/Plugin/LogWarnings.pm
it seemed to have a lot of prerequisites, I just let it install them ...
but on starting the test server and running the firs