Ensure raw tag has no arguments

This commit is contained in:
Justin Li
2015-06-02 14:32:39 -04:00
parent 86d8b552da
commit 719a98a25e
3 changed files with 12 additions and 1 deletions
+2 -1
View File
@@ -24,6 +24,7 @@ class RawTagTest < Minitest::Test
end
def test_invalid_raw
assert_match_syntax_error /tag was never closed/, '{% raw } foo {% endraw %}'
assert_match_syntax_error /tag was never closed/, '{% raw %} foo'
assert_match_syntax_error /Valid syntax/, '{% raw } foo %}{% endraw %}'
end
end