Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v2.3.8) is shown here.
These similar methods exist in v7.1.3.2:
recognized_request_for(path, request_method = nil)
private
Recognizes the route for a given path.
Show source
def recognized_request_for(path, request_method = nil)
path = "/#{path}" unless path.first == '/'
request = ActionController::TestRequest.new
request.env["REQUEST_METHOD"] = request_method.to_s.upcase if request_method
request.path = path
ActionController::Routing::Routes.recognize(request)
request
end