Disable false warning from Ameba

spec_helper_path is actually used by the ECR template.
This commit is contained in:
Michael Miller 2020-08-16 12:10:32 -06:00
parent 62fd289b0f
commit d31b8f4093
No known key found for this signature in database
GPG key ID: FB9F12F7C646A4AD

View file

@ -43,7 +43,7 @@ module Spectator::SpecHelpers
# The *dir* is the directory of the file being written to. # 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. # This is needed to resolve the relative path to the spec_helper.cr file.
private def write(io, dir) 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) ECR.embed(__DIR__ + "/example.ecr", io)
end end