Extract Parser#variable_lookup out of Expression.parse

This commit is contained in:
Charles-P. Clermont
2026-01-26 16:52:17 -05:00
parent 8efcf7dd3a
commit 8b04c52ab2
3 changed files with 104 additions and 30 deletions
+3 -3
View File
@@ -67,7 +67,7 @@ class ExpressionTest < Minitest::Test
Liquid::Template.parse(template, expression_cache: cache).render
assert_equal(
["x", "y"],
[],
cache.to_a.map { _1[0] }.sort,
)
end
@@ -91,7 +91,7 @@ class ExpressionTest < Minitest::Test
cache = parse_context.instance_variable_get(:@expression_cache)
assert_equal(
["x", "y"],
[],
cache.to_a.map { _1[0] }.sort,
)
end
@@ -112,7 +112,7 @@ class ExpressionTest < Minitest::Test
Liquid::Template.parse(template, expression_cache: cache).render
assert_equal(
["x", "y"],
[],
cache.to_a.map { _1[0] }.sort,
)
end