method
generate_response_message
v7.0.0 -
Show latest stable
- Class:
ActionDispatch::Assertions::ResponseAssertions
generate_response_message(expected, actual = @response.response_code)private
No documentation available.
# File actionpack/lib/action_dispatch/testing/assertions/response.rb, line 79
def generate_response_message(expected, actual = @response.response_code)
(+"Expected response to be a <#{code_with_name(expected)}>," " but was a <#{code_with_name(actual)}>").concat(location_if_redirected).concat(response_body_if_short)
end