Add missing &
This commit is contained in:
parent
3bbf21c343
commit
e358953660
@ -248,7 +248,7 @@ def assert_routing(path, options, defaults = {}, extras = {}, message = nil)
|
||||
|
||||
# ROUTES TODO: These assertions should really work in an integration context
|
||||
def method_missing(selector, ...)
|
||||
if @controller && @routes&.named_routes.route_defined?(selector)
|
||||
if @controller && @routes&.named_routes&.route_defined?(selector)
|
||||
@controller.public_send(selector, ...)
|
||||
else
|
||||
super
|
||||
|
Loading…
Reference in New Issue
Block a user