Skip to content

Commit 022c676

Browse files
committed
Oops! 💣
1 parent 8b3c683 commit 022c676

File tree

1 file changed

+1
-1
lines changed
  • actionpack/lib/action_dispatch/testing/assertions

1 file changed

+1
-1
lines changed

actionpack/lib/action_dispatch/testing/assertions/routing.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def with_routing
165165

166166
# ROUTES TODO: These assertions should really work in an integration context
167167
def method_missing(selector, *args, &block)
168-
if defined?(@controller) && @controller && defined?(@controller) && @routes && @routes.named_routes.route_defined?(selector)
168+
if defined?(@controller) && @controller && defined?(@routes) && @routes && @routes.named_routes.route_defined?(selector)
169169
@controller.send(selector, *args, &block)
170170
else
171171
super

0 commit comments

Comments
 (0)