[Catalyst-commits] r12744 - Catalyst-Runtime/5.80/trunk/t/aggregate
t0m at dev.catalyst.perl.org
t0m at dev.catalyst.perl.org
Wed Jan 27 20:15:52 GMT 2010
Author: t0m
Date: 2010-01-27 20:15:52 +0000 (Wed, 27 Jan 2010)
New Revision: 12744
Modified:
Catalyst-Runtime/5.80/trunk/t/aggregate/unit_core_uri_for.t
Log:
Fix failing test related to missing g in regex
Modified: Catalyst-Runtime/5.80/trunk/t/aggregate/unit_core_uri_for.t
===================================================================
--- Catalyst-Runtime/5.80/trunk/t/aggregate/unit_core_uri_for.t 2010-01-27 20:12:46 UTC (rev 12743)
+++ Catalyst-Runtime/5.80/trunk/t/aggregate/unit_core_uri_for.t 2010-01-27 20:15:52 UTC (rev 12744)
@@ -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 @@
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;
+
More information about the Catalyst-commits
mailing list