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.t;fp=t%2Faggregate%2Funit_core_uri_for.t;h=2f4fb11f4d0623400dec951813b3101c8a77557b;hp=453d6e02e30a39decad07dea736983947ad0e771;hb=6b9f9ef742c1ee771df336eed1db42d807c8c59c;hpb=ed5a562b5c77df8d42b562af5733641baa73107d diff --git a/t/aggregate/unit_core_uri_for.t b/t/aggregate/unit_core_uri_for.t index 453d6e0..2f4fb11 100644 --- a/t/aggregate/unit_core_uri_for.t +++ b/t/aggregate/unit_core_uri_for.t @@ -61,24 +61,30 @@ is( is( Catalyst::uri_for( $context, '/bar#fragment', { param1 => 'value1' } )->as_string, - 'http://127.0.0.1/foo/bar?param1=value1#fragment', + 'http://127.0.0.1/foo/bar%23fragment?param1=value1', 'URI for path with fragment and query params 1' ); is( Catalyst::uri_for( $context, '/bar#fragment\x{2620}', { param1 => 'value1' } )->as_string, - 'http://127.0.0.1/foo/bar?param1=value1#fragment%5Cx%7B2620%7D', + 'http://127.0.0.1/foo/bar%23fragment%5Cx%7B2620%7D?param1=value1', 'URI for path with fragment and query params 2' ); is( Catalyst::uri_for( $context, '/bar#fragment^%$', { param1 => 'value1' } )->as_string, - 'http://127.0.0.1/foo/bar?param1=value1#fragment%5E%25%24', + 'http://127.0.0.1/foo/bar%23fragment%5E%$?param1=value1', 'URI for path with fragment and query params 3' ); +is( + Catalyst::uri_for( $context, '/bar', { param1 => 'value1' }, \'fragment\x{2620}' )->as_string, + 'http://127.0.0.1/foo/bar?param1=value1#fragment%5Cx%7B2620%7D', + 'URI for path with fragment and query params 2' +); + # test with utf-8 is(