From 85531fecf9c7b044ca253a7db95ed01d2165de47 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Sat, 16 Nov 2019 09:01:03 -0700 Subject: [PATCH] Fix truthy values not being strings --- src/spectator/matchers/truthy_matcher.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spectator/matchers/truthy_matcher.cr b/src/spectator/matchers/truthy_matcher.cr index 09230b8..bc26a6e 100644 --- a/src/spectator/matchers/truthy_matcher.cr +++ b/src/spectator/matchers/truthy_matcher.cr @@ -114,7 +114,7 @@ module Spectator::Matchers { expected: @truthy ? "Not false or nil" : "false or nil", actual: actual.value.inspect, - truthy: !!actual.value.inspect, + truthy: (!!actual.value).inspect, } end @@ -124,7 +124,7 @@ module Spectator::Matchers { expected: @truthy ? "false or nil" : "Not false or nil", actual: actual.value.inspect, - truthy: !!actual.value.inspect, + truthy: (!!actual.value).inspect, } end