mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-12 23:40:45 -07:00
Fix warnings and make tags a proper syntax tree.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user