From 1d63d5db5fe61320366f7e2c6c6b8d800b930ac5 Mon Sep 17 00:00:00 2001 From: Dylan Thacker-Smith Date: Wed, 28 Oct 2020 10:36:33 -0400 Subject: [PATCH] Fix a leaky test that set Tempate.error_mode without resetting it (#1339) --- test/integration/template_test.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/integration/template_test.rb b/test/integration/template_test.rb index 8cc3d79..f13d834 100644 --- a/test/integration/template_test.rb +++ b/test/integration/template_test.rb @@ -257,9 +257,8 @@ class TemplateTest < Minitest::Test end def test_nil_value_does_not_raise - Liquid::Template.error_mode = :strict - t = Template.parse("some{{x}}thing") - result = t.render!({ 'x' => nil }, strict_variables: true) + t = Template.parse("some{{x}}thing", error_mode: :strict) + result = t.render!({ 'x' => nil }, strict_variables: true) assert_equal(0, t.errors.count) assert_equal('something', result)