instance method
method_missing
Ruby on Rails edge
Since edge Private — implementation detail, not part of the public APISignature
method_missing(selector, ...)
No documentation comment.
Parameters
-
selectorreq -
...req -
blockblock
Source
# File actionpack/lib/action_controller/test_case.rb, line 615
def method_missing(selector, ...)
if defined?(@controller) && @controller && defined?(@routes) && @routes && @routes.named_routes.route_defined?(selector)
@controller.public_send(selector, ...)
else
super
end
end
Defined in actionpack/lib/action_controller/test_case.rb line 615
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::TestCase::Behavior