Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

stop using build_message for creating a string

  • Loading branch information...
commit 48ed7e6ac47801a93f43dda5c7afc32ed6053b72 1 parent 6a383f4
@tenderlove tenderlove authored
View
2  actionpack/lib/action_dispatch/testing/assertions/response.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.