Push to for_stack at the beginning of For#render

This commit is contained in:
Justin Li
2015-05-15 23:13:15 -04:00
parent dad98cfc89
commit 070639daba
2 changed files with 7 additions and 3 deletions
+4
View File
@@ -313,6 +313,10 @@ HERE
'outer' => [[1, 1, 1], [1, 1, 1]])
end
def test_inner_for_over_empty_input
assert_template_result 'oo', '{% for a in (1..2) %}o{% for b in empty %}{% endfor %}{% endfor %}'
end
def test_blank_string_not_iterable
assert_template_result('', "{% for char in characters %}I WILL NOT BE OUTPUT{% endfor %}", 'characters' => '')
end