summaryrefslogtreecommitdiff
path: root/test/ruby/test_object.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_object.rb')
-rw-r--r--test/ruby/test_object.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_object.rb b/test/ruby/test_object.rb
index 37317cfd47..e4026eccba 100644
--- a/test/ruby/test_object.rb
+++ b/test/ruby/test_object.rb
@@ -325,6 +325,7 @@ class TestObject < Test::Unit::TestCase
foo = c.new
assert_equal([:foo], foo.foobar);
assert_equal([:foo, 1], foo.foobar(1));
+ assert_equal([:foo, 1, 2, 3, 4, 5], foo.foobar(1, 2, 3, 4, 5));
assert(foo.respond_to?(:foobar))
assert_equal(false, foo.respond_to?(:foobarbaz))
assert_raise(NoMethodError) do
@@ -334,6 +335,7 @@ class TestObject < Test::Unit::TestCase
foobar = foo.method(:foobar)
assert_equal([:foo], foobar.call);
assert_equal([:foo, 1], foobar.call(1));
+ assert_equal([:foo, 1, 2, 3, 4, 5], foobar.call(1, 2, 3, 4, 5));
c = Class.new(c)
assert_equal(false, c.method_defined?(:foobar))