spec/spec_helper.rb in paraduct-1.0.0.beta1 vs spec/spec_helper.rb in paraduct-1.0.0.beta2
- old
+ new
@@ -1,13 +1,14 @@
if ENV["COVERAGE"]
require 'simplecov'
require 'coveralls'
require 'codeclimate-test-reporter'
- SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
- CodeClimate::TestReporter::Formatter,
- Coveralls::SimpleCov::Formatter
- ]
+ SimpleCov.formatter =
+ SimpleCov::Formatter::MultiFormatter.new([
+ CodeClimate::TestReporter::Formatter,
+ Coveralls::SimpleCov::Formatter
+ ])
SimpleCov.start do
%w(/bin/ /vendor/ /spec/).each do |ignore_path|
add_filter(ignore_path)
end
end