Write one value at a time for array variables (#1863)

* Write one value at a time for array variables

* Handle recursive array
This commit is contained in:
Ian Ker-Seymer
2024-12-11 10:16:58 -05:00
committed by GitHub
parent 9a06cedbba
commit 63583ffe5b
2 changed files with 16 additions and 6 deletions
+4
View File
@@ -130,6 +130,10 @@ class VariableTest < Minitest::Test
assert_template_result('bar', '{{ foo }}', { 'foo' => :bar })
end
def test_nested_array
assert_template_result('', '{{ foo }}', { 'foo' => [[nil]] })
end
def test_dynamic_find_var
assert_template_result('bar', '{{ [key] }}', { 'key' => 'foo', 'foo' => 'bar' })
end