Add a regression test for a liquid-c trim mode bug (#972)

This commit is contained in:
Dylan Thacker-Smith
2018-01-25 10:55:01 -05:00
committed by GitHub
parent 5d6c1ed7c6
commit 5106466a2d
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -496,6 +496,10 @@ class TrimModeTest < Minitest::Test
assert_template_result(expected, text)
end
def test_right_trim_followed_by_tag
assert_template_result('ab c', '{{ "a" -}}{{ "b" }} c')
end
def test_raw_output
whitespace = ' '
text = <<-END_TEMPLATE