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

Commit 4cbc8c5

Browse files
committed
Enforce 100% coverage on ruby >= 2.1.0.
1 parent 4dede48 commit 4cbc8c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script/rspec_with_simplecov

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ begin
2424
# Simplecov emits some ruby warnings when loaded, so silence them.
2525
old_verbose, $VERBOSE = $VERBOSE, false
2626

27-
unless ENV['NO_COVERAGE'] || RUBY_VERSION < '1.9.3'
27+
unless ENV['NO_COVERAGE'] || RUBY_VERSION.to_f < 2.1
2828
require 'simplecov'
2929

3030
SimpleCov.start do
3131
add_filter "./bundle/"
3232
add_filter "./tmp/"
3333
add_filter "./spec/"
34-
minimum_coverage(RUBY_PLATFORM == 'java' ? 93 : 97)
34+
minimum_coverage(100)
3535
end
3636
end
3737
rescue LoadError

0 commit comments

Comments
 (0)