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
+1 -1
View File
@@ -12,6 +12,6 @@ group :test do
gem 'rubocop', '~> 0.49.0'
platform :mri do
gem 'liquid-c', github: 'Shopify/liquid-c', ref: 'bd53db95de3d44d631e7c5a267c3d934e66107dd'
gem 'liquid-c', github: 'Shopify/liquid-c', ref: '9168659de45d6d576fce30c735f857e597fa26f6'
end
end
+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