Add built-in exception route

This commit is contained in:
Sdogruyol 2015-11-28 12:39:58 +02:00
parent 58013ba005
commit e1530f8fd5
3 changed files with 10 additions and 2 deletions

View file

@ -107,6 +107,6 @@ describe "Kemal::Handler" do
kemal = Kemal::Handler.new
request = HTTP::Request.new("GET", "/?message=world")
response = kemal.call(request)
response.body.should eq("hello world")
response.status_code.should eq 404
end
end