test/match.rb in cuba-3.0.0.rc2 vs test/match.rb in cuba-3.0.0.rc3

- old
+ new

@@ -11,11 +11,11 @@ end end _, _, resp = Cuba.call(env) - assert_equal ["123"], resp.body + assert_response resp, ["123"] end test "multi-param" do |env| Cuba.define do on "u/:uid/posts/:id" do |uid, id| @@ -26,11 +26,11 @@ env["PATH_INFO"] = "/u/jdoe/posts/123" _, _, resp = Cuba.call(env) - assert_equal ["jdoe", "123"], resp.body + assert_response resp, ["jdoe", "123"] end test "regex nesting" do |env| Cuba.define do on(/u\/(\w+)/) do |uid| @@ -44,11 +44,11 @@ env["PATH_INFO"] = "/u/jdoe/posts/123" _, _, resp = Cuba.call(env) - assert_equal ["jdoe", "123"], resp.body + assert_response resp, ["jdoe", "123"] end test "regex nesting colon param style" do |env| Cuba.define do on(/u:(\w+)/) do |uid| @@ -62,11 +62,11 @@ env["PATH_INFO"] = "/u:jdoe/posts:123" _, _, resp = Cuba.call(env) - assert_equal ["jdoe", "123"], resp.body + assert_response resp, ["jdoe", "123"] end test "symbol matching" do |env| Cuba.define do on "user", :id do |uid| @@ -80,7 +80,7 @@ env["PATH_INFO"] = "/user/jdoe/posts/123" _, _, resp = Cuba.call(env) - assert_equal ["jdoe", "123"], resp.body + assert_response resp, ["jdoe", "123"] end