From 3d4d8f67be4dcbb01816e39a1d176099a993ad0b Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Wed, 23 Jan 2019 16:07:26 -0700 Subject: [PATCH] Document truthy flag --- src/spectator/matchers/truthy_matcher.cr | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/spectator/matchers/truthy_matcher.cr b/src/spectator/matchers/truthy_matcher.cr index 6882426..fedc9b8 100644 --- a/src/spectator/matchers/truthy_matcher.cr +++ b/src/spectator/matchers/truthy_matcher.cr @@ -7,6 +7,8 @@ module Spectator::Matchers # Truthy is the opposite of falsey. struct TruthyMatcher < ValueMatcher(Bool) # Creates the truthy matcher. + # The `truthy` argument should be true to match "truthy" values, + # and false to match "falsey" values. def initialize(truthy : Bool) super(truthy ? "truthy" : "falsey", truthy) end