Skip to content

Commit 30a4e01

Browse files
committed
Don't call Simplecov.start multiple times
on ruby 3.1+ this causes an error with Simplecov. See: simplecov-ruby/simplecov#1003
1 parent 1faa972 commit 30a4e01

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

spec/unit/spec_helper.rb

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,6 @@
3434
require_relative "../../lib/entitlements/auditor/gitrepo"
3535
require_relative "../../lib/entitlements/util/gitrepo"
3636

37-
SimpleCov.formatters = [
38-
SimpleCov::Formatter::HTMLFormatter,
39-
SimpleCov::Formatter::ERBFormatter
40-
]
41-
SimpleCov.start do
42-
# don't show specs as missing coverage for themselves
43-
add_filter "/spec/"
44-
45-
# don't analyze coverage for gems
46-
add_filter "/vendor/gems/"
47-
end
48-
4937
def fixture(path)
5038
File.expand_path(File.join("fixtures", path.sub(%r{\A/+}, "")), File.dirname(__FILE__))
5139
end

0 commit comments

Comments
 (0)