test/run.rb in cuba-3.0.0.rc2 vs test/run.rb in cuba-3.0.0.rc3
- old
+ new
@@ -13,11 +13,11 @@
end
end
env = { "SCRIPT_NAME" => "/", "PATH_INFO" => "/account" }
- _, _, resp = Cuba.call(env)
+ status, headers, resp = Cuba.call(env)
- assert_equal "/login", resp["Location"]
- assert_equal 307, resp.status
- assert_equal [], resp.body
-end
\ No newline at end of file
+ assert_equal "/login", headers["Location"]
+ assert_equal 307, status
+ assert_response resp, []
+end