From 235964bd30196207ef0b82e4eef227dce135e071 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 1 Nov 2024 08:30:30 +0900 Subject: [PATCH] Removed needless workaround Revert "Make simplecov-json as optional dependency" This reverts commit 898ee6e7878fdb2d0b79a4691fd68b6d8b228426. --- test/lib/helper.rb | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/test/lib/helper.rb b/test/lib/helper.rb index da9251b5..a03dcd8a 100644 --- a/test/lib/helper.rb +++ b/test/lib/helper.rb @@ -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"