This commit is contained in:
Sdogruyol 2015-11-27 22:45:13 +02:00
parent 9a5934811d
commit 58013ba005
4 changed files with 33 additions and 1 deletions

View file

@ -102,4 +102,11 @@ describe "Kemal::Handler" do
response = kemal.call(request)
response.body.should eq("Skills ruby,crystal")
end
it "renders 404 on not found" do
kemal = Kemal::Handler.new
request = HTTP::Request.new("GET", "/?message=world")
response = kemal.call(request)
response.body.should eq("hello world")
end
end