From cbb7c2753edcd6dafd904c6c9070c5657f2b9f43 Mon Sep 17 00:00:00 2001 From: Brooke Kuhlmann Date: Tue, 9 Sep 2025 13:03:57 -0600 Subject: [PATCH] Updated RSpec coverage environment variable The original `NO_COVERAGE` environment variable was awkward to read due to the double negative so `COVERAGE` is being used with an explicit "no" to disable. A message is printed to the console, when disabled, so there are no surprises. Milestone: minor --- spec/spec_helper.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 35e240a..5ab2516 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -2,7 +2,9 @@ require "simplecov" -unless ENV["NO_COVERAGE"] +if ENV["COVERAGE"] == "no" + puts "SimpleCov skipped due to being disabled." +else SimpleCov.start do add_filter %r(^/spec/) enable_coverage :branch