[Catalyst-commits] r12759 - Catalyst-Runtime/5.80/trunk/t/aggregate
    t0m at dev.catalyst.perl.org 
    t0m at dev.catalyst.perl.org
       
    Thu Jan 28 18:15:11 GMT 2010
    
    
  
Author: t0m
Date: 2010-01-28 18:15:10 +0000 (Thu, 28 Jan 2010)
New Revision: 12759
Modified:
   Catalyst-Runtime/5.80/trunk/t/aggregate/unit_core_engine_cgi-prepare_path.t
Log:
And test the non root app case
Modified: Catalyst-Runtime/5.80/trunk/t/aggregate/unit_core_engine_cgi-prepare_path.t
===================================================================
--- Catalyst-Runtime/5.80/trunk/t/aggregate/unit_core_engine_cgi-prepare_path.t	2010-01-28 15:47:31 UTC (rev 12758)
+++ Catalyst-Runtime/5.80/trunk/t/aggregate/unit_core_engine_cgi-prepare_path.t	2010-01-28 18:15:10 UTC (rev 12759)
@@ -74,6 +74,21 @@
     is ''.$r->base, 'http://www.foo.com/';
 }
 
+# nginx example from espent with path /"foo" and the app based at /oslobilder
+{
+    my $r = get_req (
+        PATH_INFO => 'oslobilder/"foo"',
+        SCRIPT_NAME => '/oslobilder/',
+        REQUEST_URI => '/oslobilder/%22foo%22',
+    );
+    is ''.$r->path, '%22foo%22';
+    is ''.$r->uri, 'http://www.foo.com/oslobilder/%22foo%22';
+    is ''.$r->base, 'http://www.foo.com/oslobilder/';
+}
+
+
+
+
 # FIXME - Test proxy logic
 #       - Test query string
 #       - Test non standard port numbers
    
    
More information about the Catalyst-commits
mailing list