mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
14 lines
282 B
Crystal
14 lines
282 B
Crystal
|
require "spec_helper"
|
||
|
|
||
|
describe "Frank::Handler" do
|
||
|
it "routes" do
|
||
|
frank = Frank::Handler.new
|
||
|
frank.add_route "GET", "/" do
|
||
|
"hello"
|
||
|
end
|
||
|
request = HTTP::Request.new("GET", "/")
|
||
|
response = frank.call(request)
|
||
|
response.body.should eq("hello")
|
||
|
end
|
||
|
end
|