fix for t/aggregate/unit_load_catalyst_test.t line 82
[catagits/Catalyst-Runtime.git] / t / aggregate / unit_load_catalyst_test.t
index ffa5655..cfa6638 100644 (file)
@@ -4,10 +4,10 @@ use strict;
 use warnings;
 
 use FindBin;
-use lib         "$FindBin::Bin/lib";
-use Test::More  tests => 59;
+use lib         "$FindBin::Bin/../lib";
+use Test::More  tests => 61;
 use FindBin qw/$Bin/;
-use lib "$Bin/lib";
+use lib "$Bin/../lib";
 use Catalyst::Utils;
 use HTTP::Request::Common;
 use Test::Exception;
@@ -82,13 +82,16 @@ use_ok( $Class );
         skip "Context tests skipped for '$meth'", 6 unless $meth eq 'ctx_request';
 
         ok( $c,                 "           Context object returned" );
-        isa_ok( $c, $App,       "               Object" );
+        isa_ok( $c, $App->context_class,       "               Object" );
         is( $c->request->uri, $Url,
                                 "               Url recorded in request" );
         is( $c->response->body, $Content,
                                 "               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";
     } }
 }