Skip to content

Commit

Permalink
Provide another assertion for to_liquid_value unless tag test (#1672)
Browse files Browse the repository at this point in the history
Since the original one would pass even if to_liquid_value isn't called on
the BooleanDrop object.
  • Loading branch information
dylanahsmith committed Jan 11, 2023
1 parent e8731f2 commit bf711a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/integration/variable_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def test_if_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('true', '{% unless foo %}true{% endunless %}', { 'foo' => BooleanDrop.new(false) })
end

def test_case_tag_calls_to_liquid_value
Expand Down

0 comments on commit bf711a0

Please sign in to comment.