spec/spec_helper.rb in loaf-0.5.0 vs spec/spec_helper.rb in loaf-0.6.0
- old
+ new
@@ -1,14 +1,14 @@
# encoding: utf-8
-if RUBY_VERSION > '1.9' and (ENV['COVERAGE'] || ENV['TRAVIS'])
+if (ENV['COVERAGE'] || ENV['TRAVIS']) && RUBY_VERSION < '2.4.0'
require 'simplecov'
require 'coveralls'
- SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
- ]
+ ])
SimpleCov.start do
command_name 'spec'
add_filter 'spec'
end