    # File lib/action_controller/assertions.rb, line 123
          def assert_recognizes(expected_options, path, extras={}, message=nil)
            clean_backtrace do
              path = "/#{path}" unless path[0..0] == '/'
              # Load routes.rb if it hasn't been loaded.
              ActionController::Routing::Routes.reload if ActionController::Routing::Routes.empty?

              # Assume given controller
              request = ActionController::TestRequest.new({}, {}, nil)
              request.path = path
              ActionController::Routing::Routes.recognize!(request)

              expected_options = expected_options.clone
              extras.each_key { |key| expected_options.delete key } unless extras.nil?

              expected_options.stringify_keys!
              msg = build_message(message, "The recognized options <?> did not match <?>",
                  request.path_parameters, expected_options)
              assert_block(msg) { request.path_parameters == expected_options }
            end
          end