Split the bmethod proc test to avoid redefinition

This commit is contained in:
Nobuyoshi Nakada 2023-06-17 12:29:28 +09:00
parent 1ff2094410
commit 7b3a531fff
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6

View File

@ -105,7 +105,9 @@ class TestCall < Test::Unit::TestCase
define_singleton_method(:a, &pr)
ary = [10]
assert_equal(10, a(*ary))
end
def test_call_bmethod_proc_restarg
pr = proc{|*sym| sym}
define_singleton_method(:a, &pr)
ary = [10]