From: Tomas Doran Date: Wed, 27 Jan 2010 20:15:52 +0000 (+0000) Subject: Fix failing test related to missing g in regex X-Git-Tag: 5.80019~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=62b6471146edafe1192f6f8d162b9dc7c3b5a6e7 Fix failing test related to missing g in regex --- diff --git a/t/aggregate/unit_core_uri_for.t b/t/aggregate/unit_core_uri_for.t index 170e91b..e70ac55 100644 --- a/t/aggregate/unit_core_uri_for.t +++ b/t/aggregate/unit_core_uri_for.t @@ -1,7 +1,7 @@ use strict; use warnings; -use Test::More tests => 20; +use Test::More; use URI; use_ok('Catalyst'); @@ -143,3 +143,13 @@ TODO: { is_deeply($query_params_base, $query_params_test, "uri_for() doesn't mess up query parameter hash in the caller"); } + +# 5.80018 is only encoding the first of the / in the arg. See line 1271. +is( + Catalyst::uri_for( $context, 'controller/action', 'foo/bar/baz' )->as_string, + 'http://127.0.0.1/controller/action/foo%2Fbar%2Fbaz', + 'Escape both forward slashes in the arg as %2F' +); + +done_testing; +