);
}
+{
+ 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();