class ActionDispatch::Integration::Session

def non_kwarg_request_warning

def non_kwarg_request_warning
  ActiveSupport::Deprecation.warn(<<-MSG.strip_heredoc)
    ActionDispatch::IntegrationTest HTTP request methods will accept only
    the following keyword arguments in future Rails versions:
    #{REQUEST_KWARGS.join(', ')}
    Examples:
    get '/profile',
      params: { id: 1 },
      headers: { 'X-Extra-Header' => '123' },
      env: { 'action_dispatch.custom' => 'custom' },
      xhr: true
  MSG
end