mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-18 02:10:41 -07:00
Replace assert_equal nil, with a assert_nil (#895)
This commit is contained in:
committed by
GitHub
parent
9c72ccb82f
commit
3bb29d5456
@@ -65,8 +65,8 @@ class ConditionUnitTest < Minitest::Test
|
||||
end
|
||||
|
||||
def test_hash_compare_backwards_compatibility
|
||||
assert_equal nil, Condition.new({}, '>', 2).evaluate
|
||||
assert_equal nil, Condition.new(2, '>', {}).evaluate
|
||||
assert_nil Condition.new({}, '>', 2).evaluate
|
||||
assert_nil Condition.new(2, '>', {}).evaluate
|
||||
assert_equal false, Condition.new({}, '==', 2).evaluate
|
||||
assert_equal true, Condition.new({ 'a' => 1 }, '==', { 'a' => 1 }).evaluate
|
||||
assert_equal true, Condition.new({ 'a' => 2 }, 'contains', 'a').evaluate
|
||||
|
||||
Reference in New Issue
Block a user