Use #actual instead of #value

This commit is contained in:
Michael Miller 2019-01-23 16:05:59 -07:00
parent 8c6552a995
commit a827b191a1
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ module Spectator::Matchers
# True is returned if the match was successful, false otherwise. # True is returned if the match was successful, false otherwise.
def match?(partial : Expectations::ValueExpectationPartial(ActualType)) : Bool forall ActualType def match?(partial : Expectations::ValueExpectationPartial(ActualType)) : Bool forall ActualType
# Cast value to truthy value and compare. # Cast value to truthy value and compare.
@expected == !!partial.value @expected == !!partial.actual
end end
# Describes the condition that satisfies the matcher. # Describes the condition that satisfies the matcher.