mirror of
https://github.com/ruby/ruby.git
synced 2026-01-29 21:44:28 +00:00
Split the bmethod proc test to avoid redefinition
This commit is contained in:
parent
1ff2094410
commit
7b3a531fff
@ -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]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user