From b8a02c1a628e18d5d5cd606468ad00139a3dcbf3 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Thu, 28 Sep 2023 11:38:20 +0900 Subject: [PATCH] Test: use recent Minitest style Current style has long been to use Minitest instead of MiniTest at least for 3 years, and with minitest 5.19, MiniTest usage support is hidden unless explicitly setting ENV["MT_COMPAT"]. https://github.com/minitest/minitest/commit/a2c6c18570f6f0a1bf6af70fe3b6d9599a13fdd6 Switch to use Minitest style. --- test/helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/helper.rb b/test/helper.rb index cb961435..dd79fc92 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -5,7 +5,7 @@ require 'minitest/autorun' -class TestCase < MiniTest::Test +class TestCase < Minitest::Test def self.test(name, &block) define_method("test_#{name.gsub(/\W/, '_')}", &block) if block end