From 48ed7e6ac47801a93f43dda5c7afc32ed6053b72 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Fri, 6 Jan 2012 10:42:02 -0800 Subject: [PATCH] stop using build_message for creating a string --- actionpack/lib/action_dispatch/testing/assertions/response.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ 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 -- GitLab