application proxied on context instead the other way around; not all tests pass yet
[catagits/Catalyst-Runtime.git] / t / aggregate / unit_core_uri_for_action.t
index 4098f91..3ead197 100644 (file)
@@ -92,12 +92,12 @@ my $request = Catalyst::Request->new( {
                 base => URI->new('http://127.0.0.1/foo')
               } );
 
-my $context = TestApp->new( {
-                context => Catalyst::Context->new(
+my $application = TestApp->new;
+my $context = Catalyst::Context->new(
                     request => $request,
                     namespace => 'yada',
-                ),
-              } );
+                    application => $application,
+                );
 
 is($context->uri_for($context->controller('Action')),
    "http://127.0.0.1/foo/yada/action/",