Actually there's no middleware anymore

This commit is contained in:
Sdogruyol 2016-12-04 01:43:30 +03:00
parent 1afb4cbfa8
commit eb64b52f84
7 changed files with 17 additions and 19 deletions

View file

@ -52,7 +52,7 @@ describe "Context" do
io = IO::Memory.new
response = HTTP::Server::Response.new(io)
context = HTTP::Server::Context.new(request, response)
Kemal::Middleware::Filter::INSTANCE.call(context)
Kemal::FilterHandler::INSTANCE.call(context)
Kemal::RouteHandler::INSTANCE.call(context)
context.store["key"].should eq "value"
context.store["before_get"].should eq "Kemal"