From de253e1c2bb99f158f05b2227cec529049796722 Mon Sep 17 00:00:00 2001 From: Keith Lawrence Date: Thu, 21 Sep 2023 13:46:14 +0100 Subject: [PATCH] Enable branch coverage in simplecov --- 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 526b398..10e821a 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 require File.expand_path("../config/environment", __dir__) require "rspec/rails"