class RSpec::Rails::Matchers::RoutingMatchers::BeRoutableMatcher

def matches?(path)

def matches?(path)
  @actual = path
  match_unless_raises ActionController::RoutingError do
    @routing_options = @scope.routes.recognize_path(
      path.values.first, method: path.keys.first
    )
  end
end