module ActionDispatch::Assertions::RoutingAssertions

def method_missing(selector, *args, &block)

ROUTES TODO: These assertions should really work in an integration context
def method_missing(selector, *args, &block)
  if defined?(@controller) && @controller && defined?(@routes) && @routes && @routes.named_routes.route_defined?(selector)
    @controller.public_send(selector, *args, &block)
  else
    super
  end
end