Skip to content

Commit

Permalink
Use test-unit instead of minitest
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed May 10, 2021
1 parent 051d8b6 commit 01e7310
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 2 additions & 8 deletions test/psych/helper.rb
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
# frozen_string_literal: true
require 'minitest/autorun'
require 'test/unit'
require 'stringio'
require 'tempfile'
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
Expand Down

0 comments on commit 01e7310

Please sign in to comment.