Fix truthy values not being strings

This commit is contained in:
Michael Miller 2019-11-16 09:01:03 -07:00
parent 76c21d447a
commit 85531fecf9

View file

@ -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