X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flive_engine_request_uri.t;h=01a19faad22ddd53715aab157276022102445afd;hb=2055d9ad6304f9db74cb05ec8ee0146ce319e8e4;hp=a957b7ef6bf75abb191943523d33872aa4b845be;hpb=de19de2e6f40d9f8986df5e4f37dc8084a7c83ee;p=catagits%2FCatalyst-Runtime.git diff --git a/t/live_engine_request_uri.t b/t/live_engine_request_uri.t index a957b7e..01a19fa 100644 --- a/t/live_engine_request_uri.t +++ b/t/live_engine_request_uri.t @@ -62,8 +62,8 @@ SKIP: ok( my $response = request('http://localhost/engine/request/uri?a=1;a=2;b=3'), 'Request' ); ok( $response->is_success, 'Response Successful 2xx' ); ok( eval '$creq = ' . $response->content, 'Unserialize Catalyst::Request' ); - is( $creq->{uri}->query, 'a=1;a=2;b=3', 'Query string ok' ); - is_deeply( $creq->{parameters}, $parameters, 'Parameters ok' ); + is( $creq->uri->query, 'a=1;a=2;b=3', 'Query string ok' ); + is_deeply( $creq->parameters, $parameters, 'Parameters ok' ); } # test that query params are unescaped properly @@ -71,8 +71,8 @@ SKIP: ok( my $response = request('http://localhost/engine/request/uri?text=Catalyst%20Rocks'), 'Request' ); ok( $response->is_success, 'Response Successful 2xx' ); ok( eval '$creq = ' . $response->content, 'Unserialize Catalyst::Request' ); - is( $creq->{uri}->query, 'text=Catalyst%20Rocks', 'Query string ok' ); - is( $creq->{parameters}->{text}, 'Catalyst Rocks', 'Unescaped param ok' ); + is( $creq->uri->query, 'text=Catalyst%20Rocks', 'Query string ok' ); + is( $creq->parameters->{text}, 'Catalyst Rocks', 'Unescaped param ok' ); } # test that uri_with adds params @@ -119,3 +119,4 @@ SKIP: ok( $response->is_success, 'Response Successful 2xx' ); is( $response->header( 'X-Catalyst-warnings' ), 0, 'no warnings emitted' ); } +