diff options
author | Koichi Sasada <[email protected]> | 2020-01-28 14:35:38 +0900 |
---|---|---|
committer | Koichi Sasada <[email protected]> | 2020-01-28 15:23:51 +0900 |
commit | 9b65bfdc9e5eb8a36fdd464ed7534ed2a9557ea7 () | |
tree | 4ada264c16e3c9f1ba62de12933e878e6022bfa1 /test/ruby/test_refinement.rb | |
parent | 56b0300f24bc2bce6309279e2c07e8a1f08044e4 (diff) |
support multi-run for test/ruby/test_refinement.rb
Give up to support multi-run: * test_method_should_use_refinements * test_instance_method_should_use_refinements I hope someone can revisit it.
-rw-r--r-- | test/ruby/test_refinement.rb | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -217,6 +217,8 @@ class TestRefinement < Test::Unit::TestCase assert_raise(NoMethodError) { FooExtClient.public_send_b_on(foo) } end module MethodIntegerPowEx refine Integer do def pow(*) @@ -225,6 +227,9 @@ class TestRefinement < Test::Unit::TestCase end end def test_method_should_use_refinements foo = Foo.new assert_raise(NameError) { foo.method(:z) } assert_equal("FooExt#z", FooExtClient.method_z(foo).call) @@ -246,6 +251,9 @@ class TestRefinement < Test::Unit::TestCase end end def test_instance_method_should_use_refinements foo = Foo.new assert_raise(NameError) { Foo.instance_method(:z) } assert_equal("FooExt#z", FooExtClient.instance_method_z(foo).bind(foo).call) |