method

validate_request!

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

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.

validate_request!()
private

No documentation available.

# File actionpack/lib/action_dispatch/testing/assertions/response.rb, line 89
        def validate_request!
          unless @request.is_a?(ActionDispatch::Request)
            raise ArgumentError, "@request must be an ActionDispatch::Request"
          end
        end