method

handle_old_process_api

rails latest stable - Class: ActionController::TestCase::Behavior

Method deprecated or moved

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

handle_old_process_api(http_method, args, callstack)
private

No documentation available.

# File actionpack/lib/action_controller/test_case.rb, line 631
      def handle_old_process_api(http_method, args, callstack)
        # 4.0: Remove this method.
        if http_method.is_a?(Hash)
          ActiveSupport::Deprecation.warn("TestCase#process now expects the HTTP method as second argument: process(action, http_method, params, session, flash)", callstack)
          args.unshift(http_method)
          http_method = args.last.is_a?(String) ? args.last : "GET"
        end

        [http_method, args]
      end