Skip to content

Commit 8617f23

Browse files
committed
Support to minitest 5
1 parent 54bb5c5 commit 8617f23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/minitest_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22
begin
3-
gem 'minitest', '~> 4.0' unless defined?(Test::Unit)
3+
gem 'minitest', '~> 5.0'
44
rescue NoMethodError, Gem::LoadError
55
# for ruby tests
66
end
@@ -29,7 +29,7 @@
2929
# * <code>@pwd</code> containing the current working directory
3030
# * FileUtils, pp, Tempfile, Dir.tmpdir and StringIO
3131

32-
class RDoc::TestCase < MiniTest::Unit::TestCase
32+
class RDoc::TestCase < (defined?(Minitest::Test) ? Minitest::Test : MiniTest::Unit::TestCase)
3333

3434
##
3535
# Abstract test-case setup

0 commit comments

Comments
 (0)