X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Faggregate%2Funit_load_catalyst_test.t;h=036c3b8a1ab82812625bfc46427965e762dd6845;hb=13f911efd2cfb317ad1b41968a8c06c3f0a74f52;hp=d3f30ee477e929b2a348e11211dfb40c93d53154;hpb=b1ead5a2645de398ab6f2627ace6e7cf9e4f2cfe;p=catagits%2FCatalyst-Runtime.git diff --git a/t/aggregate/unit_load_catalyst_test.t b/t/aggregate/unit_load_catalyst_test.t index d3f30ee..036c3b8 100644 --- a/t/aggregate/unit_load_catalyst_test.t +++ b/t/aggregate/unit_load_catalyst_test.t @@ -3,9 +3,7 @@ use strict; use warnings; -use FindBin; -use lib "$FindBin::Bin/lib"; -use Test::More tests => 59; +use Test::More; use FindBin qw/$Bin/; use lib "$Bin/../lib"; use Catalyst::Utils; @@ -26,7 +24,7 @@ my %Meth = ( ### make sure we're not trying to connect to a remote host -- these are local tests local $ENV{CATALYST_SERVER}; -use_ok( $Class ); +use Catalyst::Test (); ### check available methods { ### turn of redefine warnings, we'll get new subs exported @@ -89,6 +87,9 @@ use_ok( $Class ); " Content recorded in response" ); ok( $c->stash, " Stash accessible" ); ok( $c->action, " Action object accessible" ); + ok( $res->request, " Response has request object" ); + lives_and { is( $res->request->uri, $Url) } + " Request object has correct url"; } } } @@ -152,3 +153,4 @@ lives_ok { request(GET('/dummy'), []); } 'array additional param to request method ignored'; +done_testing;