spec/support/simplecov_helper.rb in modis-1.4.2 vs spec/support/simplecov_helper.rb in modis-2.0.0
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
require 'simplecov'
require './spec/support/simplecov_quality_formatter'
module SimpleCovHelper
def start_simple_cov(name)
@@ -15,9 +17,9 @@
if CodeClimate::TestReporter.run?
formatters << CodeClimate::TestReporter::Formatter
end
end
- formatter SimpleCov::Formatter::MultiFormatter[*formatters]
+ formatter SimpleCov::Formatter::MultiFormatter.new(*formatters)
end
end
end