Clean up whitespace collapsing a bit

This commit is contained in:
Florian Weingarten
2013-06-27 13:57:26 +02:00
parent f01d0dbea6
commit c16697746b
6 changed files with 14 additions and 9 deletions
+4
View File
@@ -61,6 +61,10 @@ class BlankTest < Test::Unit::TestCase
assert_template_result(body*(N+1), wrap(body))
end
def test_increment_is_not_blank
assert_template_result(" 0"*2*(N+1), wrap("{% assign foo = 0 %} {% increment foo %} {% decrement foo %}"))
end
def test_raw_is_not_blank
assert_template_result(" "*(N+1), wrap(" {% raw %} {% endraw %}"))
end