mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-16 09:20:42 -07:00
Raise SyntaxError if raw tag is unclosed
This commit is contained in:
@@ -22,4 +22,8 @@ class RawTagTest < Minitest::Test
|
||||
assert_template_result ' test {% raw %} {% endraw %}', '{% raw %} test {% raw %} {% {% endraw %}endraw %}'
|
||||
assert_template_result ' Foobar {{ invalid 1', '{% raw %} Foobar {{ invalid {% endraw %}{{ 1 }}'
|
||||
end
|
||||
|
||||
def test_invalid_raw
|
||||
assert_match_syntax_error /tag was never closed/, '{% raw } foo {% endraw %}'
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user