summaryrefslogtreecommitdiff
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 17:32:29 +0900
commit01e7310dd3bde44a800f8cc54edccea2799cc954 (patch)
treea060b6f5b84f1dc63f89739b000772b45672c150
parent051d8b654b1ce4961c7e2b86f60006acd9addb3a (diff)
downloadpsych-01e7310dd3bde44a800f8cc54edccea2799cc954.zip
Use test-unit instead of minitest
-rw-r--r--Gemfile2
-rw-r--r--test/psych/helper.rb10
2 files changed, 3 insertions, 9 deletions
diff --git a/Gemfile b/Gemfile
index 3937d61..1835a5b 100644
--- a/Gemfile
+++ b/Gemfile
@@ -4,6 +4,6 @@ gemspec
group :development do
gem 'rake-compiler', ">= 0.4.1"
- gem 'minitest', "~> 5.0"
+ gem 'test-unit'
gem 'ruby-maven', :platforms => :jruby
end
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 @@
# 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