aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-01-06 10:42:02 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2012-01-06 11:11:29 -0800
commit48ed7e6ac47801a93f43dda5c7afc32ed6053b72 (patch)
treea511e03903159bd5fba808c26780dd560c0c4bc9 /actionpack
parent6a383f4b481d8ae76acb53e2d2defb2b91288485 (diff)
downloadrails-48ed7e6ac47801a93f43dda5c7afc32ed6053b72.tar.gz
rails-48ed7e6ac47801a93f43dda5c7afc32ed6053b72.tar.bz2
rails-48ed7e6ac47801a93f43dda5c7afc32ed6053b72.zip
stop using build_message for creating a string
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/testing/assertions/response.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/testing/assertions/response.rb b/actionpack/lib/action_dispatch/testing/assertions/response.rb
index 7381617dd7..fbee226a36 100644
--- a/actionpack/lib/action_dispatch/testing/assertions/response.rb
+++ b/actionpack/lib/action_dispatch/testing/assertions/response.rb
@@ -35,7 +35,7 @@ module ActionDispatch
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