instance method
method_missing
Ruby on Rails 3.0.20
Since v3.0.20Signature
method_missing(selector, *args, &block)
ROUTES TODO: These assertions should really work in an integration context
Parameters
-
selectorreq -
argsrest -
blockblock
Source
# File actionpack/lib/action_dispatch/testing/assertions/routing.rb, line 171
def method_missing(selector, *args, &block)
if @controller && @routes && @routes.named_routes.helpers.include?(selector)
@controller.send(selector, *args, &block)
else
super
end
end
Defined in actionpack/lib/action_dispatch/testing/assertions/routing.rb line 171
· View on GitHub
· Improve this page
· Find usages on GitHub