test/all.rb in syro-0.0.5 vs test/all.rb in syro-0.0.6

- old
+ new

@@ -56,10 +56,14 @@ get { res.write("GET /foo/bar") } + put { + res.write("PUT /foo/bar") + } + post { res.write("POST /foo/bar") } patch { @@ -132,16 +136,20 @@ test "path + verb" do |f| f.get("/foo/bar") assert_equal 200, f.last_response.status assert_equal "GET /foo/bar", f.last_response.body - f.patch("/foo/bar") + f.put("/foo/bar") assert_equal 200, f.last_response.status - assert_equal "PATCH /foo/bar", f.last_response.body + assert_equal "PUT /foo/bar", f.last_response.body f.post("/foo/bar") assert_equal 200, f.last_response.status assert_equal "POST /foo/bar", f.last_response.body + + f.patch("/foo/bar") + assert_equal 200, f.last_response.status + assert_equal "PATCH /foo/bar", f.last_response.body f.delete("/foo/bar") assert_equal 200, f.last_response.status assert_equal "DELETE /foo/bar", f.last_response.body end