mirror of
https://github.com/kemko/liquid.git
synced 2026-01-04 17:25:41 +03:00
Fixed condition constains operator with wrong data type
"contains" operator on wrong data type should not cause NoMethodError.
This commit is contained in:
@@ -80,6 +80,10 @@ class ConditionUnitTest < Minitest::Test
|
||||
assert_evalutes_false "0", 'contains', 'not_assigned'
|
||||
end
|
||||
|
||||
def test_contains_return_false_on_wrong_data_type
|
||||
assert_evalutes_false "1", 'contains', '0'
|
||||
end
|
||||
|
||||
def test_or_condition
|
||||
condition = Condition.new('1', '==', '2')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user