From 780eeb2ad37f5f633acf748561b659d0a93a847f Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Wed, 24 Jul 2024 16:08:54 -0600 Subject: [PATCH] Disable Lint/UselessAssign rule for custom matcher Workaround for https://github.com/crystal-ameba/ameba/issues/447 --- spec/spec_helper.cr | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/spec_helper.cr b/spec/spec_helper.cr index 2c1d050b..f2e5c376 100644 --- a/spec/spec_helper.cr +++ b/spec/spec_helper.cr @@ -21,6 +21,7 @@ Spectator::Matchers.define :pass_check do end end +# ameba:disable Lint/UselessAssign Spectator::Matchers.define :fail_check, message : String | Regex do @result : Spectator::Core::Result?