From: Zbigniew Łukasiak Date: Tue, 17 Nov 2009 16:24:51 +0000 (+0000) Subject: context creation fixed in t/aggregate/unit_core_uri_for_action.t X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=f7367fe2884ee17d55064722b9136f244e74f86d context creation fixed in t/aggregate/unit_core_uri_for_action.t --- diff --git a/t/aggregate/unit_core_uri_for_action.t b/t/aggregate/unit_core_uri_for_action.t index 4431f5a..9a25862 100644 --- a/t/aggregate/unit_core_uri_for_action.t +++ b/t/aggregate/unit_core_uri_for_action.t @@ -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/",