From 019a6a447b1f6ec081addf2f1d22d28ad8c7e49d Mon Sep 17 00:00:00 2001 From: Mattia Giuffrida Date: Tue, 19 Mar 2024 09:10:15 +0000 Subject: [PATCH] Fix deprecation warning from simplecov --- spec/spec_helper.rb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 0799768..049a7c8 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -3,10 +3,12 @@ require 'coveralls' require 'simplecov' -SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ - SimpleCov::Formatter::HTMLFormatter, - Coveralls::SimpleCov::Formatter -] +SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new( + [ + SimpleCov::Formatter::HTMLFormatter, + Coveralls::SimpleCov::Formatter + ] +) SimpleCov.start require 'faraday/digestauth'