Skip to content

Commit

Permalink
Fix deprecation warning for SimpleCov formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszgorniak committed Jan 9, 2025
1 parent fa23a7c commit 9b3efee
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
begin
require 'simplecov'

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter
]
SimpleCov.formatter =
SimpleCov::Formatter::MultiFormatter.new([SimpleCov::Formatter::HTMLFormatter])

SimpleCov.start do
add_filter '/spec/'
Expand Down

0 comments on commit 9b3efee

Please sign in to comment.