added verb for filters and minor improvements

This commit is contained in:
Joris Moriau 2016-02-16 21:07:58 +01:00
parent 62e9170baf
commit c5201f01ad
13 changed files with 259 additions and 92 deletions

View file

@ -3,7 +3,7 @@ require "./spec_helper"
describe "Route" do
describe "match?" do
it "matches the correct route" do
kemal = Kemal::RouteHandler.new
kemal = Kemal::RouteHandler::INSTANCE
kemal.add_route "GET", "/route1" do |env|
"Route 1"
end