summaryrefslogtreecommitdiff
path: root/tool
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 /tool
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 'tool')
-rw-r--r--tool/lib/-test-/integer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/lib/-test-/integer.rb b/tool/lib/-test-/integer.rb
index a224148..e60abf0 100644
--- a/tool/lib/-test-/integer.rb
+++ b/tool/lib/-test-/integer.rb
@@ -4,11 +4,11 @@ require '-test-/integer.so'
module Test::Unit::Assertions
def assert_fixnum(v, msg=nil)
assert_instance_of(Integer, v, msg)
- assert_predicate(v, :fixnum?, msg)
+ assert_send([Bug::Integer, :fixnum?, v], msg)
end
def assert_bignum(v, msg=nil)
assert_instance_of(Integer, v, msg)
- assert_predicate(v, :bignum?, msg)
+ assert_send([Bug::Integer, :bignum?, v], msg)
end
end