From a827b191a13dbd0da9a94010eeb13f71b1b3771b Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Wed, 23 Jan 2019 16:05:59 -0700 Subject: [PATCH] Use #actual instead of #value --- src/spectator/matchers/truthy_matcher.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spectator/matchers/truthy_matcher.cr b/src/spectator/matchers/truthy_matcher.cr index 76de8ba..6882426 100644 --- a/src/spectator/matchers/truthy_matcher.cr +++ b/src/spectator/matchers/truthy_matcher.cr @@ -15,7 +15,7 @@ module Spectator::Matchers # True is returned if the match was successful, false otherwise. def match?(partial : Expectations::ValueExpectationPartial(ActualType)) : Bool forall ActualType # Cast value to truthy value and compare. - @expected == !!partial.value + @expected == !!partial.actual end # Describes the condition that satisfies the matcher.