diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-05-10 17:32:29 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-05-10 17:32:29 +0900 |
commit | 01e7310dd3bde44a800f8cc54edccea2799cc954 (patch) | |
tree | a060b6f5b84f1dc63f89739b000772b45672c150 | |
parent | 051d8b654b1ce4961c7e2b86f60006acd9addb3a (diff) | |
download | psych-01e7310dd3bde44a800f8cc54edccea2799cc954.zip |
Use test-unit instead of minitest
-rw-r--r-- | Gemfile | 2 | ||||
-rw-r--r-- | test/psych/helper.rb | 10 |
2 files changed, 3 insertions, 9 deletions
@@ -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 |