mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 08:50:45 -07:00
Extract Parser#variable_lookup out of Expression.parse
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user