test two endpoints with the same endpoint name (empty string)
[catagits/CatalystX-Routes.git] / t / routes.t
index 3ffb66c..c90af4b 100644 (file)
@@ -109,12 +109,26 @@ use HTTP::Request::Common qw( GET PUT POST DELETE );
     );
 
     is(
-        $MyApp1::Controller::C1::REQ{empty}, 99,
+        $MyApp1::Controller::C1::REQ{user_end}, 99,
         'get /user/99 calls get chained from _set_user'
     );
 }
 
 {
+    get('/thing/99');
+
+    is(
+        $MyApp1::Controller::C1::REQ{thing}, 99,
+        'get /thing/99 calls _set_thing chain point'
+    );
+
+    is(
+        $MyApp1::Controller::C1::REQ{thing_end}, 99,
+        'get /thing/99 calls get chained from _set_thing'
+    );
+}
+
+{
     get('/normal');
 
     is(