context creation fixed in t/aggregate/unit_core_uri_for_action.t
Zbigniew Łukasiak [Tue, 17 Nov 2009 16:24:51 +0000 (16:24 +0000)]
t/aggregate/unit_core_uri_for_action.t

index 4431f5a..9a25862 100644 (file)
@@ -92,10 +92,12 @@ my $request = Catalyst::Request->new( {
                 base => URI->new('http://127.0.0.1/foo')
               } );
 
-my $context = TestApp->new( {
+my $application = TestApp->new;
+my $context = Catalyst::Context->new( 
+                application => $application,
                 request => $request,
                 namespace => 'yada',
-              } );
+              );
 
 is($context->uri_for($context->controller('Action')),
    "http://127.0.0.1/foo/yada/action/",