mirror of
https://github.com/Shopify/liquid.git
synced 2026-10-02 16:45:12 -07:00
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.
This commit is contained in:
@@ -35,6 +35,7 @@ class VariableTest < Minitest::Test
|
|||||||
|
|
||||||
def test_unless_tag_calls_to_liquid_value
|
def test_unless_tag_calls_to_liquid_value
|
||||||
assert_template_result('', '{% unless foo %}true{% endunless %}', { 'foo' => BooleanDrop.new(true) })
|
assert_template_result('', '{% unless foo %}true{% endunless %}', { 'foo' => BooleanDrop.new(true) })
|
||||||
|
assert_template_result('true', '{% unless foo %}true{% endunless %}', { 'foo' => BooleanDrop.new(false) })
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_case_tag_calls_to_liquid_value
|
def test_case_tag_calls_to_liquid_value
|
||||||
|
|||||||
Reference in New Issue
Block a user