WrapCGI - fix PATH_INFO tests
Rafael Kitover [Mon, 27 Apr 2009 14:12:49 +0000 (14:12 +0000)]
Changes
t/wrap-cgi.t

diff --git a/Changes b/Changes
index ba50373..a857263 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,7 @@
 Revision history for Catalyst-Controller-WrapCGI
 
+    - revert PATH_INFO tests to unescaped URIs (caelum)
+
 0.0030  2009-04-27 05:17:17
     - configurable cgi_dir (caelum)
     - support for PATH_INFO and SCRIPT_NAME (caelum)
index aa253cf..8e01df7 100644 (file)
@@ -19,10 +19,10 @@ my $response = request POST '/cgi-bin/test.cgi', [
 is($response->content, 'foo:bar bar:baz', 'POST to CGI');
 
 $response = request '/cgi-bin/test_pathinfo.cgi/path/%2Finfo';
-is($response->content, '/path//info', 'PATH_INFO is correct');
+is($response->content, '/path/%2Finfo', 'PATH_INFO is correct');
 
 $response = request '/cgi-bin/test_filepathinfo.cgi/path/%2Finfo';
-is($response->content, '/test_filepath_info/path//info',
+is($response->content, '/test_filepath_info/path/%2Finfo',
     'FILEPATH_INFO is correct (maybe)');
 
 $response = request '/cgi-bin/test_scriptname.cgi/foo/bar';