Flowdock
method

recognized_request_for

Importance_0
v1.2.0 - Show latest stable - 0 notes - Class: ActionController::Assertions::ResponseAssertions
recognized_request_for(path, request_method = nil) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_controller/assertions/response_assertions.rb, line 123
        def recognized_request_for(path, request_method = nil)
          path = "/#{path}" unless path.first == '/'

          # Assume given controller
          request = ActionController::TestRequest.new({}, {}, nil)
          request.env["REQUEST_METHOD"] = request_method.to_s.upcase if request_method
          request.path   = path

          ActionController::Routing::Routes.recognize(request)
          request
        end
Register or log in to add new notes.