Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 4063be9

Browse files
committed
Rely on COVERAGE_ONLY_ON (but only enforce minimum=100 on 3.1+)
1 parent 1198582 commit 4063be9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

script/rspec_with_simplecov

+2-3
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,17 @@ begin
2525
old_verbose, $VERBOSE = $VERBOSE, false
2626

2727
skip_because_no_coverage = ENV['NO_COVERAGE']
28-
skip_because_ruby_too_low = RUBY_VERSION.to_f < 2.1
2928
skip_because_wrong_version = ENV['COVERAGE_ONLY_ON'] && ENV['COVERAGE_ONLY_ON'].to_f != RUBY_VERSION.to_f
3029

31-
unless skip_because_no_coverage || skip_because_ruby_too_low || skip_because_wrong_version
30+
unless skip_because_no_coverage || skip_because_wrong_version
3231
require 'simplecov'
3332

3433
SimpleCov.start do
3534
root File.expand_path("../..", __FILE__)
3635
add_filter %r{/bundle/}
3736
add_filter %r{/tmp/}
3837
add_filter %r{/spec/}
39-
minimum_coverage(100)
38+
minimum_coverage(100) if RUBY_VERSION.to_f >= 3.1
4039
end
4140
end
4241
rescue LoadError # rubocop:disable Lint/SuppressedException

0 commit comments

Comments
 (0)