From 809f0b8a1357f14f9645210d4812f4400c8d397e Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Tue, 28 Jan 2020 20:47:48 +0100 Subject: Update to ruby/spec@f8a2d54 --- spec/ruby/optional/capi/kernel_spec.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'spec/ruby/optional/capi/kernel_spec.rb') diff --git a/spec/ruby/optional/capi/kernel_spec.rb b/spec/ruby/optional/capi/kernel_spec.rb index 32cdd3f421..c6fddc3f64 100644 --- a/spec/ruby/optional/capi/kernel_spec.rb +++ b/spec/ruby/optional/capi/kernel_spec.rb @@ -578,6 +578,20 @@ describe "C-API Kernel function" do end end + describe 'rb_funcall' do + before :each do + @obj = Object.new + class << @obj + def many_args(*args) + args + end + end + end + + it "can call a public method with 10 arguments" do + @s.rb_funcall_many_args(@obj, :many_args).should == 15.downto(1).to_a + end + end describe 'rb_funcall_with_block' do before :each do @obj = Object.new -- cgit v1.2.3