Skip to content

Commit

Permalink
Merge pull request #346 from ruby/revert-workaround
Browse files Browse the repository at this point in the history
Removed needless workaround
  • Loading branch information
hsbt authored Nov 1, 2024
2 parents 5409e1a + 235964b commit d4968b8
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions test/lib/helper.rb
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
require "simplecov"

# Cannot use ".simplecov" file: simplecov-json triggers a circular require.
begin
require "simplecov-json"
SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::HTMLFormatter,
SimpleCov::Formatter::JSONFormatter,
])
rescue LoadError
# for `make test-bundled-gems` in ruby-core repository.
# That task does not install C extension gem like json.
end
require "simplecov-json"
SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::HTMLFormatter,
SimpleCov::Formatter::JSONFormatter,
])

SimpleCov.start do
command_name "Net::IMAP tests"
Expand Down

0 comments on commit d4968b8

Please sign in to comment.