module RSpec::Rails::ControllerExampleGroup
def method_missing(method, *args, &block)
If method is a named_route, delegates to the RouteSet associated with
def method_missing(method, *args, &block) if @routes && @routes.named_routes.helpers.include?(method) controller.send(method, *args, &block) elsif defined?(@orig_routes) && @orig_routes && @orig_routes.named_routes.helpers.include?(method) controller.send(method, *args, &block) else super end end