From 863adb7a97f9edde022ab96e1406271021966318 Mon Sep 17 00:00:00 2001 From: Jon Rowe Date: Tue, 6 Aug 2013 18:58:43 +1000 Subject: [PATCH] use the same coveralls setup as core --- spec/spec_helper.rb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 815e8277..cfcd3bd6 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -3,8 +3,15 @@ require 'rspec/autotest' require 'aruba/api' -require 'coveralls' -Coveralls.wear! +unless ENV['NO_COVERALLS'] + require 'simplecov' if RUBY_VERSION.to_f > 1.8 + require 'coveralls' + Coveralls.wear! do + add_filter '/bundle/' + add_filter '/spec/' + add_filter '/tmp/' + end +end if RUBY_PLATFORM == 'java' # Works around https://jira.codehaus.org/browse/JRUBY-5678