jsantell/poet — pull request #38 by ameyp (2013-07-28 09:45:34+00:00)
Title:  # This is the 2nd commit message:  Added a test to check for addRoute.

This fix is required because calling `getRoute` with an invalid route currently returns the first type in `Object.keys(poet.options.routes)`. This can be demonstrated by called `addRoute` with an invalid route, e.g.

poet.addRoute("/", function(request, response) {
response.render("index");
}