Fix ParseTreeVisitorTest for ruby-head

This commit is contained in:
Dylan Thacker-Smith
2020-03-31 10:19:25 -04:00
parent e9b649b345
commit 81149344a5

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)