X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Flive_engine_request_uri.t;h=9b5833eba77162247545d5a1ad9a04042961950d;hp=dba622fd6bfdfeac82112a99d2a87579f650cbb1;hb=fbb513f774337d5b48768491f0479b2b24e7fc4c;hpb=d06051f75205fa4e481d04eeb8387f5ac1b6833f diff --git a/t/live_engine_request_uri.t b/t/live_engine_request_uri.t index dba622f..9b5833e 100644 --- a/t/live_engine_request_uri.t +++ b/t/live_engine_request_uri.t @@ -6,7 +6,7 @@ use warnings; use FindBin; use lib "$FindBin::Bin/lib"; -use Test::More tests => 38; +use Test::More tests => 41; use Catalyst::Test 'TestApp'; use Catalyst::Request; @@ -84,6 +84,13 @@ my $creq; is( $response->header( 'X-Catalyst-Param-b' ), '1', 'param "b" ok' ); } +# test that uri_with replaces params (and preserves) +{ + ok( my $response = request('http://localhost/engine/request/uri/uri_with_object'), 'Request' ); + ok( $response->is_success, 'Response Successful 2xx' ); + is( $response->header( 'X-Catalyst-Param-a' ), 'http://localhost/', 'param "a" ok' ); +} + # test that uri_with is utf8 safe { ok( my $response = request("http://localhost/engine/request/uri/uri_with_utf8"), 'Request' );