Ruby 1.8 compatibility fix: Ensure for-loop on an empty string does not enter for-body.

This commit is contained in:
Dennis Theisen
2012-02-29 14:41:21 -05:00
parent 1b2d0198ea
commit 3d7c1c80a0
2 changed files with 8 additions and 1 deletions
+4
View File
@@ -195,4 +195,8 @@ HERE
'{{val}}{%endfor%}',
'string' => "test string")
end
def test_blank_string_not_iterable
assert_template_result('', "{% for char in characters %}I WILL NOT BE OUTPUT{% endfor %}", 'characters' => '')
end
end