Only running simplecov if RUBY_VERSION is 1.9 or greater, and COVERAGE env is set to 'true'

This commit is contained in:
Parker Moore 2013-01-20 22:16:23 -05:00
parent 914f1e834d
commit 607b4c84fd
1 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,7 @@
require 'simplecov'
SimpleCov.start do
add_filter "/test/"
if RUBY_VERSION > '1.9' && ENV["COVERAGE"] == "true"
require 'simplecov'
require 'simplecov-gem-adapter'
SimpleCov.start('gem')
end
require 'rubygems'