Fix warnings and make tags a proper syntax tree.

This commit is contained in:
Tristan Hume
2013-08-22 12:44:23 -04:00
parent 93fcd5687c
commit b0cba5298a
3 changed files with 13 additions and 7 deletions
+1
View File
@@ -95,6 +95,7 @@ class ErrorHandlingTest < Test::Unit::TestCase
template = Liquid::Template.parse('{% if ~~~ %}{{%%%}}{% else %}wat{% endif %}', :error_mode => :warn)
assert_equal 2, template.warnings.size
assert_equal 'Unexpected character ~ in "~~~"', template.warnings.first.message
assert_equal 'Unexpected character % in "{{%%%}}"', template.warnings.last.message
assert_equal 'wat', template.render
end