ruby-changes:66119
From: Hiroshi <ko1@a...>
Date: Mon, 10 May 2021 19:12:33 +0900 (JST)
Subject: [ruby-changes:66119] ce67549c50 (master): [ruby/psych] Use test-unit instead of minitest
https://git.ruby-lang.org/ruby.git/commit/?id=ce67549c50 From ce67549c503a5f31505fb292c11e40337dcba336 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Mon, 10 May 2021 17:32:29 +0900 Subject: [ruby/psych] Use test-unit instead of minitest https://github.com/ruby/psych/commit/01e7310dd3 --- test/psych/helper.rb | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/test/psych/helper.rb b/test/psych/helper.rb index 9348457..b118b31 100644 --- a/test/psych/helper.rb +++ b/test/psych/helper.rb @@ -1,5 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/test/psych/helper.rb#L1 # frozen_string_literal: true -require 'minitest/autorun' +require 'test/unit' require 'stringio' require 'tempfile' require 'date' @@ -7,13 +7,7 @@ require 'date' https://github.com/ruby/ruby/blob/trunk/test/psych/helper.rb#L7 require 'psych' module Psych - superclass = if defined?(Minitest::Test) - Minitest::Test - else - MiniTest::Unit::TestCase - end - - class TestCase < superclass + class TestCase < Test::Unit::TestCase def self.suppress_warning verbose, $VERBOSE = $VERBOSE, nil yield -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/