diff options
| -rw-r--r-- | Gemfile | 1 | ||||
| -rw-r--r-- | Gemfile.lock | 2 | ||||
| -rw-r--r-- | test/test_helper.rb | 4 |
3 files changed, 6 insertions, 1 deletions
@@ -7,3 +7,4 @@ gem 'rubysl-rexml', platform:'rbx' gem 'rubysl-test-unit', platform:'rbx', group:'test' gem 'rubysl-coverage', platform:'rbx', group:'test' gem 'rubinius-coverage', platform:'rbx', group:'test' +gem 'yajl-ruby', platform:'rbx', group:'test' diff --git a/Gemfile.lock b/Gemfile.lock index 31ad6a0..b8b16ae 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -31,6 +31,7 @@ GEM simplecov-html (~> 0.7.1) simplecov-html (0.7.1) trollop (2.0) + yajl-ruby (1.1.0) yard (0.8.7.3) PLATFORMS @@ -49,4 +50,5 @@ DEPENDENCIES rubysl-singleton rubysl-test-unit simplecov + yajl-ruby yard diff --git a/test/test_helper.rb b/test/test_helper.rb index 60567e0..f0d9bc2 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -8,7 +8,9 @@ begin add_filter do |source_file| source_file.lines.count < 15 end - minimum_coverage 70 + # 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 end rescue LoadError => e $stderr.puts 'No test coverage tools found, skipping coverage check.' |
