summaryrefslogtreecommitdiff
path: root/test/-ext-/array
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-01-08 19:07:16 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-01-09 22:38:06 +0900
commit590dc06e3840cc7b00d80ccaac9fbf42573428f8 (patch)
treee5f6aa316246401b8d89e7419ddf0976238c04b5 /test/-ext-/array
parent161a20df28dd09ff35a32a7e2b7ce6cab7079707 (diff)
Get rid of defining methods for tests in core classes
Not to interfere in other tests.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4043
Diffstat (limited to 'test/-ext-/array')
-rw-r--r--test/-ext-/array/test_resize.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/-ext-/array/test_resize.rb b/test/-ext-/array/test_resize.rb
index c7a57f3cf1..d393620c55 100644
--- a/test/-ext-/array/test_resize.rb
+++ b/test/-ext-/array/test_resize.rb
@@ -3,6 +3,12 @@ require 'test/unit'
require '-test-/array/resize'
class Test_Array < Test::Unit::TestCase
+ using Module.new {
+ refine(Array) {
+ def __resize__(len) ::Bug::Array.__resize__(self, len); end
+ }
+ }
+
class TestResize < Test::Unit::TestCase
def test_expand
feature = '[ruby-dev:42912]'