fix parsing comment block body inside a liquid tag

This commit is contained in:
Michael Go
2023-11-09 16:27:23 -04:00
parent e180535784
commit 41f65173b0
2 changed files with 31 additions and 8 deletions
+13
View File
@@ -3,6 +3,19 @@
require 'test_helper'
class CommentTagUnitTest < Minitest::Test
def test_comment_inside_liquid_tag
assert_template_result("", <<~LIQUID.chomp)
{% liquid
if 1 != 1
comment
else
echo 123
endcomment
endif
%}
LIQUID
end
def test_does_not_parse_nodes_inside_a_comment
assert_template_result("", <<~LIQUID.chomp)
{% comment %}