spec/spec_helper.rb in modis-1.3.0 vs spec/spec_helper.rb in modis-1.4.0
- old
+ new
@@ -1,10 +1,12 @@
-begin
- require './spec/support/simplecov_helper'
- include SimpleCovHelper
- start_simple_cov('unit')
-rescue LoadError
- puts "Coverage disabled."
+unless ENV['TRAVIS']
+ begin
+ require './spec/support/simplecov_helper'
+ include SimpleCovHelper
+ start_simple_cov('unit')
+ rescue LoadError
+ puts "Coverage disabled."
+ end
end
require 'modis'
Modis.configure do |config|