module ActionDispatch::Assertions::RoutingAssertions
def method_missing(selector, *args, &block)
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