update kemal version
This commit is contained in:
parent
05cc810f5f
commit
b6a93d2fe0
3 changed files with 5 additions and 10 deletions
|
@ -2,7 +2,7 @@ require "./spec_helper"
|
|||
|
||||
describe "SpecKemalApp" do
|
||||
it "handles get" do
|
||||
Kemal::RouteHandler::INSTANCE.add_route "GET", "/" do
|
||||
get "/" do
|
||||
"Hello world"
|
||||
end
|
||||
get "/"
|
||||
|
@ -10,7 +10,7 @@ describe "SpecKemalApp" do
|
|||
end
|
||||
|
||||
it "handles post" do
|
||||
Kemal::RouteHandler::INSTANCE.add_route "POST", "/user" do |env|
|
||||
post "/user" do |env|
|
||||
env.params.json.to_json
|
||||
end
|
||||
json_body = {"name": "Serdar", "age": 27, "skills": ["crystal, kemal"]}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue