test/root.rb in cuba-3.0.0.rc2 vs test/root.rb in cuba-3.0.0.rc3
- old
+ new
@@ -12,11 +12,11 @@
"PATH_INFO" => "/"
}
_, _, resp = Cuba.call(env)
- assert_equal ["/"], resp.body
+ assert_response resp, ["/"]
end
test "nested empty segments" do
Cuba.define do
on "" do
@@ -34,7 +34,7 @@
"PATH_INFO" => "///1"
}
_, _, resp = Cuba.call(env)
- assert_equal ["IT WORKS!", "///1"], resp.body
-end
\ No newline at end of file
+ assert_response resp, ["IT WORKS!", "///1"]
+end