Fix strict parsing of find variable with a name expression

This commit is contained in:
Dylan Thacker-Smith
2020-10-19 12:17:25 -04:00
parent 420a1c79e1
commit 46fd63da5f
2 changed files with 9 additions and 0 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