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

- old
+ new

@@ -18,27 +18,27 @@ "SCRIPT_NAME" => "/", "rack.input" => StringIO.new, "QUERY_STRING" => "email=john@doe.com" } _, _, resp = Cuba.call(env) - assert_equal ["john@doe.com"], resp.body + assert_response resp, ["john@doe.com"] end test "doesn't yield a missing param" do env = { "REQUEST_METHOD" => "GET", "PATH_INFO" => "/signup", "SCRIPT_NAME" => "/", "rack.input" => StringIO.new, "QUERY_STRING" => "" } _, _, resp = Cuba.call(env) - assert_equal ["No email"], resp.body + assert_response resp, ["No email"] end test "doesn't yield an empty param" do env = { "REQUEST_METHOD" => "GET", "PATH_INFO" => "/signup", "SCRIPT_NAME" => "/", "rack.input" => StringIO.new, "QUERY_STRING" => "email=" } _, _, resp = Cuba.call(env) - assert_equal ["No email"], resp.body + assert_response resp, ["No email"] end