From 7b60a6b8acdef032b0991812a97ba57fcbb62dde Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Wed, 24 Jul 2024 12:51:06 -0600 Subject: [PATCH] Add info text to avoid lint issue with `not_nil!` --- spec/spec_helper.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/spec_helper.cr b/spec/spec_helper.cr index e9b675a4..0b8c2ad0 100644 --- a/spec/spec_helper.cr +++ b/spec/spec_helper.cr @@ -12,7 +12,7 @@ Spectator::Matchers.define :be_successful do end failure_message(block: true) do - result = @result.not_nil! + result = @result.not_nil!("`match` must be called before `failure_message`") <<-END_OF_MESSAGE Expected block to be successful, but the result was #{result.status}