From e77a41232323179edd6cfab5bf7fd0cef6c5ca72 Mon Sep 17 00:00:00 2001 From: Keith Lawrence Date: Wed, 10 Jan 2024 15:13:34 +0000 Subject: [PATCH] Enable branch coverage in tests --- 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 9e32f491a..d66ec163b 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,7 +1,9 @@ ENV["RAILS_ENV"] ||= "test" require "simplecov" -SimpleCov.start "rails" +SimpleCov.start "rails" do + enable_coverage :branch +end $LOAD_PATH << File.join(__dir__, "..")