From 5106466a2dc1885d0791e74652a7384d99b682f4 Mon Sep 17 00:00:00 2001 From: Dylan Thacker-Smith Date: Thu, 25 Jan 2018 10:55:01 -0500 Subject: [PATCH] Add a regression test for a liquid-c trim mode bug (#972) --- Gemfile | 2 +- test/integration/trim_mode_test.rb | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 1a5b94b9..dda9fa6b 100644 --- a/Gemfile +++ b/Gemfile @@ -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 diff --git a/test/integration/trim_mode_test.rb b/test/integration/trim_mode_test.rb index ed24fe33..52248cff 100644 --- a/test/integration/trim_mode_test.rb +++ b/test/integration/trim_mode_test.rb @@ -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