Method: ActionView::TestCase::Behavior#method_missing
- Defined in:
- actionview/lib/action_view/test_case.rb
#method_missing(selector) ⇒ Object (private)
418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 |
# File 'actionview/lib/action_view/test_case.rb', line 418 def method_missing(selector, ...) begin routes = @controller.respond_to?(:_routes) && @controller._routes rescue # Don't call routes, if there is an error on _routes call end if routes && (routes.named_routes.route_defined?(selector) || routes.mounted_helpers.method_defined?(selector)) @controller.__send__(selector, ...) else super end end |