Missing ? on method name check

This commit is contained in:
Michael Miller 2020-01-20 20:42:16 -07:00
parent cacca99c0b
commit d30e65ee2d

View file

@ -14,7 +14,7 @@ module Spectator::Matchers
# Checks whether the matcher is satisifed with the expression given to it. # Checks whether the matcher is satisifed with the expression given to it.
private def match?(actual : TestExpression(T)) : Bool forall T private def match?(actual : TestExpression(T)) : Bool forall T
value = expected.value value = expected.value
if value.responds_to?(:same) if value.responds_to?(:same?)
value.same?(actual.value) value.same?(actual.value)
else else
# Value type (struct) comparison. # Value type (struct) comparison.