X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Faggregate%2Funit_core_uri_for.t;h=a54150890c262a3e807b54ba2e0e6c9aa1c19c36;hb=efc1a69b1e03a40bc721aa745846d45f855b9511;hp=453d6e02e30a39decad07dea736983947ad0e771;hpb=9d1f95081b5502041ce6597d67a7aa3c23dc8e08;p=catagits%2FCatalyst-Runtime.git diff --git a/t/aggregate/unit_core_uri_for.t b/t/aggregate/unit_core_uri_for.t index 453d6e0..a541508 100644 --- a/t/aggregate/unit_core_uri_for.t +++ b/t/aggregate/unit_core_uri_for.t @@ -65,21 +65,18 @@ is( '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', - 'URI for path with fragment and query params 2' + Catalyst::uri_for( $context, '/bar#fragment^%$', { param1 => 'value1' } )->as_string, + 'http://127.0.0.1/foo/bar?param1=value1#fragment^%$', + 'URI for path with fragment and query params 3' ); - is( - Catalyst::uri_for( $context, '/bar#fragment^%$', { param1 => 'value1' } )->as_string, - 'http://127.0.0.1/foo/bar?param1=value1#fragment%5E%25%24', + Catalyst::uri_for( $context, '/foo#bar/baz', { param1 => 'value1' } )->as_string, + 'http://127.0.0.1/foo/foo?param1=value1#bar/baz', 'URI for path with fragment and query params 3' ); - # test with utf-8 is( Catalyst::uri_for( $context, 'quux', { param1 => "\x{2620}" } )->as_string,