From bf711a052170c4b436d20f38882327a03f725916 Mon Sep 17 00:00:00 2001 From: Dylan Thacker-Smith Date: Wed, 11 Jan 2023 14:05:27 -0500 Subject: [PATCH] Provide another assertion for to_liquid_value unless tag test (#1672) Since the original one would pass even if to_liquid_value isn't called on the BooleanDrop object. --- test/integration/variable_test.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/integration/variable_test.rb b/test/integration/variable_test.rb index c1fe16f7..0c42413c 100644 --- a/test/integration/variable_test.rb +++ b/test/integration/variable_test.rb @@ -35,6 +35,7 @@ class VariableTest < Minitest::Test def test_unless_tag_calls_to_liquid_value assert_template_result('', '{% unless foo %}true{% endunless %}', { 'foo' => BooleanDrop.new(true) }) + assert_template_result('true', '{% unless foo %}true{% endunless %}', { 'foo' => BooleanDrop.new(false) }) end def test_case_tag_calls_to_liquid_value