We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 094571b commit 8b3c683Copy full SHA for 8b3c683
actionpack/lib/action_dispatch/testing/assertions/routing.rb
@@ -165,7 +165,7 @@ def with_routing
165
166
# ROUTES TODO: These assertions should really work in an integration context
167
def method_missing(selector, *args, &block)
168
- if defined?(@controller) && @controller && @routes && @routes.named_routes.route_defined?(selector)
+ if defined?(@controller) && @controller && defined?(@controller) && @routes && @routes.named_routes.route_defined?(selector)
169
@controller.send(selector, *args, &block)
170
else
171
super
0 commit comments