Add add_handler macro

This commit is contained in:
sdogruyol 2016-01-05 14:20:40 +02:00
parent 6a4ed2d9eb
commit eb4c82043a
4 changed files with 18 additions and 7 deletions

View file

@ -4,6 +4,12 @@ require "../src/kemal/middleware/*"
include Kemal
class CustomTestHandler < HTTP::Handler
def call(request)
call_next request
end
end
Spec.before_each do
Kemal.config.env = "development"
Kemal.config.handlers.clear