module ActionDispatch::Assertions::RoutingAssertions::WithIntegrationRouting

def with_routing(&block)

def with_routing(&block)
  old_routes = app.routes
  old_routes_call_method = old_routes.method(:call)
  old_integration_session = integration_session
  create_routes(&block)
ensure
  reset_routes(old_routes, old_routes_call_method, old_integration_session)
end