summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZack Hobson2013-12-09 16:35:06 -0800
committerZack Hobson2013-12-09 16:35:06 -0800
commit1da3280a958932378f2e49b7873a82e814479f4b (patch)
tree1d55cee51040dcd1e64f599b423983abeecf42b1
parent7338cf08d8b463ba165050fa741a2a49916e57e4 (diff)
downloadhcl-1da3280a958932378f2e49b7873a82e814479f4b.tar.bz2
jruby: fix coverage check.
-rw-r--r--Gemfile.lock1
-rw-r--r--test/test_helper.rb9
2 files changed, 7 insertions, 3 deletions
diff --git a/Gemfile.lock b/Gemfile.lock
index b8b16ae..a0b8292 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -35,6 +35,7 @@ GEM
yard (0.8.7.3)
PLATFORMS
+ java
ruby
DEPENDENCIES
diff --git a/test/test_helper.rb b/test/test_helper.rb
index f0d9bc2..784e4f2 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -8,9 +8,12 @@ begin
add_filter do |source_file|
source_file.lines.count < 15
end
- # MRI and JRuby report ~74%, Rubinius reports ~85%
- # (source: https://travis-ci.org/zenhob/hcl)
- minimum_coverage case RUBY_ENGINE when "rbx" then 84 else 74 end
+ # source: https://travis-ci.org/zenhob/hcl
+ minimum_coverage case RUBY_ENGINE
+ when "rbx" then 84
+ when "jruby" then 73
+ else 74
+ end
end
rescue LoadError => e
$stderr.puts 'No test coverage tools found, skipping coverage check.'