shard-kemal/spec/frank_handler_spec.cr
2014-07-30 19:58:48 -03:00

13 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