diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-09-09 20:56:53 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-09-11 08:48:03 +0900 |
commit | 0fda70e3a3833c1ee82ad06c22aa7436027cccc0 (patch) | |
tree | b474d7246f5acc1804c13d74d3ffbe3712565e34 /tool/test | |
parent | 47928204b7541f7728eae4ebc157029af8c42589 (diff) | |
download | ruby-0fda70e3a3833c1ee82ad06c22aa7436027cccc0.tar.gz |
We don't want to consistent assert and refute assertions
Diffstat (limited to 'tool/test')
-rw-r--r-- | tool/test/testunit/test_minitest_unit.rb | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/tool/test/testunit/test_minitest_unit.rb b/tool/test/testunit/test_minitest_unit.rb index 9d2b086a22..84e426aacf 100644 --- a/tool/test/testunit/test_minitest_unit.rb +++ b/tool/test/testunit/test_minitest_unit.rb @@ -1100,32 +1100,6 @@ class TestMiniTestUnitTestCase < Test::Unit::TestCase end end - def test_class_asserts_match_refutes - @assertion_count = 0 - - methods = Test::Unit::Assertions.public_instance_methods - methods.map! { |m| m.to_s } if Symbol === methods.first - - # These don't have corresponding refutes _on purpose_. They're - # useless and will never be added, so don't bother. - ignores = %w[assert_output assert_raise assert_send - assert_silent assert_throws] - - # These are test/unit methods. I'm not actually sure why they're still here - ignores += %w[assert_no_match assert_not_equal assert_not_nil - 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 - - assert_empty refutes.map { |n| n.sub(/^refute/, 'assert') } - asserts - assert_empty asserts.map { |n| n.sub(/^assert/, 'refute') } - refutes - end - def test_flunk util_assert_triggered 'Epic Fail!' do @tc.flunk |