Merge pull request #1317 from Shopify/strict-parse-dynamic-find-var

Fix strict parsing of find variable with a name expression
This commit is contained in:
Dylan Thacker-Smith
2020-10-19 13:43:26 -04:00
committed by GitHub
2 changed files with 28 additions and 17 deletions
+4
View File
@@ -95,4 +95,8 @@ class VariableTest < Minitest::Test
def test_render_symbol
assert_template_result('bar', '{{ foo }}', 'foo' => :bar)
end
def test_dynamic_find_var
assert_template_result('bar', '{{ [key] }}', 'key' => 'foo', 'foo' => 'bar')
end
end