diff options
author | Koichi Sasada <[email protected]> | 2020-01-28 18:20:06 +0900 |
---|---|---|
committer | Koichi Sasada <[email protected]> | 2020-01-28 18:20:06 +0900 |
commit | 471a9693118d0e6897b50dbbd935a237ad637398 () | |
tree | f22ce8200c5b594fdb819ca56e1a8d6f7a400725 /test/ruby/test_refinement.rb | |
parent | dd64c34682bfcb976ec6fb0c6182fb09d9d790d3 (diff) |
use Minitest::Unit.current_repeat_count to skip multi-run.
-rw-r--r-- | test/ruby/test_refinement.rb | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -217,8 +217,6 @@ class TestRefinement < Test::Unit::TestCase assert_raise(NoMethodError) { FooExtClient.public_send_b_on(foo) } end - DONE_TESTS = [] - module MethodIntegerPowEx refine Integer do def pow(*) @@ -227,8 +225,7 @@ class TestRefinement < Test::Unit::TestCase end end def test_method_should_use_refinements - skip if DONE_TESTS.include? __method__ # giveup multi-run - DONE_TESTS << __method__ foo = Foo.new assert_raise(NameError) { foo.method(:z) } @@ -251,8 +248,7 @@ class TestRefinement < Test::Unit::TestCase end end def test_instance_method_should_use_refinements - skip if DONE_TESTS.include? __method__ # giveup multi-run - DONE_TESTS << __method__ foo = Foo.new assert_raise(NameError) { Foo.instance_method(:z) } |