Remove == method from drops from testing to_liquid_value

Since they could cause tests to pass without to_liquid_value being called
on the left side of the equality comparison.
This commit is contained in:
Dylan Thacker-Smith
2023-01-13 15:37:27 -05:00
parent c743936a78
commit cdb5cb06b2
-8
View File
@@ -131,10 +131,6 @@ class IntegerDrop < Liquid::Drop
@value = value.to_i
end
def ==(other)
@value == other
end
def to_s
@value.to_s
end
@@ -150,10 +146,6 @@ class BooleanDrop < Liquid::Drop
@value = value
end
def ==(other)
@value == other
end
def to_liquid_value
@value
end