Flunk makes a lot more sense, doesnt it (hat tip @tenderlove)

上级 31155eeb
......@@ -42,7 +42,7 @@ def assert_response(type, message = nil)
elsif type.is_a?(Symbol) && @response.response_code == Rack::Utils::SYMBOL_TO_STATUS_CODE[type]
assert_block("") { true } # to count the assertion
else
assert(false, build_message(message, "Expected response to be a <?>, but was <?>", type, @response.response_code))
flunk(build_message(message, "Expected response to be a <?>, but was <?>", type, @response.response_code))
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册