提交 48ed7e6a 编写于 作者: A Aaron Patterson

stop using build_message for creating a string

上级 6a383f4b
......@@ -35,7 +35,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
flunk(build_message(message, "Expected response to be a <?>, but was <?>", type, @response.response_code))
flunk "Expected response to be a <#{type}>, but was <#{@response.response_code}>"
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册