Fix capitalizations
[catagits/CatalystX-Routes.git] / t / routes.t
index b0d03bb..52296ec 100644 (file)
@@ -144,4 +144,20 @@ use HTTP::Request::Common qw( GET PUT POST DELETE );
     );
 }
 
+{
+    request( GET '/' );
+
+    is(
+        $MyApp1::Controller::Root::REQ{root}, 1,
+        'GET request for / went to the right sub (routes work when namespace is empty string)'
+    );
+
+    request( GET '/foo.txt' );
+
+    is(
+        $MyApp1::Controller::Root::REQ{'foo.txt'}, 1,
+        'GET request for /foo.txt went to the right sub (routes work when namespace is empty string)'
+    );
+}
+
 done_testing();