diff options
Diffstat (limited to 'test/minitest')
-rw-r--r-- | test/minitest/test_minitest_unit.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/minitest/test_minitest_unit.rb b/test/minitest/test_minitest_unit.rb index 3d92b865c3..f59bc45c26 100644 --- a/test/minitest/test_minitest_unit.rb +++ b/test/minitest/test_minitest_unit.rb @@ -1529,7 +1529,9 @@ class TestMiniTestUnitTestCase < MiniTest::Unit::TestCase def test_refute_match_matcher_object @assertion_count = 2 non_verbose do - @tc.refute_match Object.new, 5 # default #=~ returns false + obj = Object.new + def obj.=~(other); false; end + @tc.refute_match obj, 5 end end |