X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Faggregate%2Funit_core_uri_for_action.t;fp=t%2Faggregate%2Funit_core_uri_for_action.t;h=4431f5a704e66b11185898a654e6f9124641537f;hp=b8f394467647c1aae0024c18d5d35b68ac62f2a8;hb=7069eab51d9488288772eafa8b4854617645b2a1;hpb=d2598ac82e8508f4d6da90ec60a1ed60840c2016 diff --git a/t/aggregate/unit_core_uri_for_action.t b/t/aggregate/unit_core_uri_for_action.t index b8f3944..4431f5a 100644 --- a/t/aggregate/unit_core_uri_for_action.t +++ b/t/aggregate/unit_core_uri_for_action.t @@ -8,7 +8,7 @@ use lib "$FindBin::Bin/../lib"; use Test::More; -plan tests => 29; +plan tests => 30; use_ok('TestApp'); @@ -97,6 +97,10 @@ my $context = TestApp->new( { namespace => 'yada', } ); +is($context->uri_for($context->controller('Action')), + "http://127.0.0.1/foo/yada/action/", + "uri_for a controller"); + is($context->uri_for($path_action), "http://127.0.0.1/foo/action/relative/relative", "uri_for correct for path action");