X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Froutes.t;h=b0d03bbc2038f96e4832eabd7031bfc5e5622cd6;hb=35406a49a66453834477550d03bcdc3025a99afd;hp=c90af4b082da2a5730daf2d1eb961d0b360daeb8;hpb=058ab36b2a72bf2c6d353fb3795d2783067c9624;p=catagits%2FCatalystX-Routes.git diff --git a/t/routes.t b/t/routes.t index c90af4b..b0d03bb 100644 --- a/t/routes.t +++ b/t/routes.t @@ -15,7 +15,7 @@ use HTTP::Request::Common qw( GET PUT POST DELETE ); 'GET request for /foo went to the right sub' ); - request( GET '/foo', ( Accept => '*/*', ) ); + request( GET '/foo', ( Accept => '*/*' ) ); is( $MyApp1::Controller::C1::REQ{get_html}, 1, @@ -82,7 +82,7 @@ use HTTP::Request::Common qw( GET PUT POST DELETE ); } { - get('/chain1/42/chain2/84/baz/foo'); + request( GET '/chain1/42/chain2/84/baz/foo' ); is( $MyApp1::Controller::C1::REQ{chain1}, 42, @@ -101,7 +101,7 @@ use HTTP::Request::Common qw( GET PUT POST DELETE ); } { - get('/user/99'); + request( GET '/user/99' ); is( $MyApp1::Controller::C1::REQ{user}, 99, @@ -115,7 +115,7 @@ use HTTP::Request::Common qw( GET PUT POST DELETE ); } { - get('/thing/99'); + request( GET '/thing/99' ); is( $MyApp1::Controller::C1::REQ{thing}, 99, @@ -129,7 +129,7 @@ use HTTP::Request::Common qw( GET PUT POST DELETE ); } { - get('/normal'); + request( GET '/normal' ); is( $MyApp1::Controller::C1::REQ{normal}, 1,