test/all.rb in syro-2.0.0 vs test/all.rb in syro-2.1.0

- old
+ new

@@ -106,10 +106,14 @@ put { res.write("PUT /foo/bar") } + head { + res.write("HEAD /foo/bar") + } + post { res.write("POST /foo/bar") } patch { @@ -117,10 +121,14 @@ } delete { res.write("DELETE /foo/bar") } + + options { + res.write("OPTIONS /foo/bar") + } } } on("bar/baz") { get { @@ -198,10 +206,14 @@ f.put("/foo/bar") assert_equal 200, f.last_response.status assert_equal "PUT /foo/bar", f.last_response.body + f.head("/foo/bar") + assert_equal 200, f.last_response.status + assert_equal "HEAD /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") @@ -209,9 +221,13 @@ 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 + + f.options("/foo/bar") + assert_equal 200, f.last_response.status + assert_equal "OPTIONS /foo/bar", f.last_response.body end test "verbs match only on root" do |f| f.get("/bar/baz/foo") assert_equal "", f.last_response.body