From d31b8f40935904a1c46fd5764045b73ec674472e Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Sun, 16 Aug 2020 12:10:32 -0600 Subject: [PATCH] Disable false warning from Ameba spec_helper_path is actually used by the ECR template. --- spec/helpers/example.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/helpers/example.cr b/spec/helpers/example.cr index 8ad8d46..dca1042 100644 --- a/spec/helpers/example.cr +++ b/spec/helpers/example.cr @@ -43,7 +43,7 @@ module Spectator::SpecHelpers # The *dir* is the directory of the file being written to. # This is needed to resolve the relative path to the spec_helper.cr file. private def write(io, dir) - spec_helper_path = Path[@spec_helper_path].relative_to(dir) + spec_helper_path = Path[@spec_helper_path].relative_to(dir) # ameba:disable Lint/UselessAssign ECR.embed(__DIR__ + "/example.ecr", io) end