Fix ParseTreeVisitorTest for ruby 3 compatibility

(cherry picked from commit 81149344a5)
This commit is contained in:
Dylan Thacker-Smith
2023-01-10 13:53:40 -05:00
parent 0487badd03
commit abfcec9a57
+1 -1
View File
@@ -238,7 +238,7 @@ class ParseTreeVisitorTest < Minitest::Test
def traversal(template)
ParseTreeVisitor
.for(Template.parse(template).root)
.add_callback_for(VariableLookup, &:name)
.add_callback_for(VariableLookup) { |node| node.name } # rubocop:disable Style/SymbolProc
end
def visit(template)