instance method generate_response_message

Ruby on Rails 5.2.8.1

Since v5.2.8.1 Private

Available in: v5.2.8.1 v6.0.6 v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

generate_response_message(expected, actual = @response.response_code)

No documentation comment.

Parameters

expected req
actual opt = @response.response_code
Source
# File actionpack/lib/action_dispatch/testing/assertions/response.rb, line 81
        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)}>"
            .dup.concat(location_if_redirected).concat(response_body_if_short)
        end

Defined in actionpack/lib/action_dispatch/testing/assertions/response.rb line 81 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionDispatch::Assertions::ResponseAssertions

Type at least 2 characters to search.

↑↓ navigate · open · esc close