mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Add 404
This commit is contained in:
parent
9a5934811d
commit
58013ba005
4 changed files with 33 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue