summaryrefslogtreecommitdiff
path: root/test/psych
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2021-05-10 17:32:29 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-05-10 18:53:33 +0900
commitce67549c503a5f31505fb292c11e40337dcba336 (patch)
tree14ddfa1d6e8ded7dbc887dc2c0f46d17e92f6bbc /test/psych
parentce5779d8cc30f28031c8d0f42836f8afae75c40b (diff)
[ruby/psych] Use test-unit instead of minitest
https://github.com/ruby/psych/commit/01e7310dd3
Diffstat (limited to 'test/psych')
-rw-r--r--test/psych/helper.rb10
1 files changed, 2 insertions, 8 deletions
diff --git a/test/psych/helper.rb b/test/psych/helper.rb
index 93484579584..b118b31c463 100644
--- a/test/psych/helper.rb
+++ b/test/psych/helper.rb
@@ -1,5 +1,5 @@
# frozen_string_literal: true
-require 'minitest/autorun'
+require 'test/unit'
require 'stringio'
require 'tempfile'
require 'date'
@@ -7,13 +7,7 @@ require 'date'
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