method

exception_if_present

rails latest stable - Class: ActionDispatch::Assertions::ResponseAssertions

Method not available on this version

This method is only available on newer versions. The first available version (v8.0.0) is shown here.

exception_if_present()
private

No documentation available.

# File actionpack/lib/action_dispatch/testing/assertions/response.rb, line 104
        def exception_if_present
          return "" unless ex = @request&.env&.[]("action_dispatch.exception")
          "\n\nException while processing request: #{Minitest::UnexpectedError.new(ex).message}\n"
        end