use strict;
use warnings;
-use Test::More tests => 20;
+use Test::More;
use URI;
use_ok('Catalyst');
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;
+