X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Faggregate%2Funit_core_uri_for_action.t;h=4431f5a704e66b11185898a654e6f9124641537f;hb=5ab21903f27011f38ec3e32ef2e649065e7adc1e;hp=499a1c7566e2ad3a917cb56110ec34c8b10bbea9;hpb=4ac0b9cb8e9043db8a95f44af685c782bf9426e7;p=catagits%2FCatalyst-Runtime.git diff --git a/t/aggregate/unit_core_uri_for_action.t b/t/aggregate/unit_core_uri_for_action.t index 499a1c7..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"); @@ -168,6 +172,6 @@ is($context->uri_for($chained_action, [ 1 ], 2, { q => 1 }), eval { $context->uri_for_action( '/does/not/exist' ) }; like $@, qr{^Can't find action for path '/does/not/exist'}, 'uri_for_action croaks on nonexistent path'; - + }