summaryrefslogtreecommitdiff
path: root/tool/test
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2020-05-07 20:19:42 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-05-08 07:38:50 +0900
commit1fe2b7f41caf1868917bab5e698d25dae2bce85b (patch)
tree56c5557cce3c64d5ba7b2f388fa45fba00dbb27d /tool/test
parent7050f86ae16c957d662afc0e1b3e15369816cce9 (diff)
Workaround for Minitest5
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3087
Diffstat (limited to 'tool/test')
-rw-r--r--tool/test/minitest/test_minitest_unit.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/tool/test/minitest/test_minitest_unit.rb b/tool/test/minitest/test_minitest_unit.rb
index 1286b15372..5476cf9795 100644
--- a/tool/test/minitest/test_minitest_unit.rb
+++ b/tool/test/minitest/test_minitest_unit.rb
@@ -1372,6 +1372,9 @@ class TestMiniTestUnitTestCase < MiniTest::Unit::TestCase
assert_not_same assert_nothing_raised
assert_nothing_thrown assert_raise]
+ # These are compatibility methods for Minitest 5
+ ignores += %w[assertions assertions=]
+
asserts = methods.grep(/^assert/).sort - ignores
refutes = methods.grep(/^refute/).sort - ignores