[Catalyst-dev] uri_for() and URI fragments

Ronald J Kimball rkimball at pangeamedia.com
Fri Sep 3 14:19:46 GMT 2010


2010/9/3 Uwe Völker <uwe at uwevoelker.de>:
> Did you mix up #anchor and #fragment?

I did, thank you.

Here's a corrected test:

is(
    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'
);


#   Failed test 'URI for path with fragment and query params'
#   at t/aggregate/unit_core_uri_for.t line 61.
#          got: 'http://127.0.0.1/foo/bar#fragment?param1=value1'
#     expected: 'http://127.0.0.1/foo/bar?param1=value1#fragment'


Ronald



More information about the Catalyst-dev mailing list