summaryrefslogtreecommitdiff
path: root/test/-ext-/proc
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-09 14:58:33 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-09 14:58:33 +0000
commit770128ade36db597395630f861fd9d801428ef2b (patch)
treedb49a515b7f1b7d030a763d17fd2f352ea435c67 /test/-ext-/proc
parent71c8cf27dbf049aa8e91550ae0b04bc1bca6ee3f (diff)
test_bmethod.rb: block in bmethod test
* test/-ext-/proc/test_bmethod.rb (test_super_in_bmethod): block in bmethod test for [Feature #10195]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/-ext-/proc')
-rw-r--r--test/-ext-/proc/test_bmethod.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/-ext-/proc/test_bmethod.rb b/test/-ext-/proc/test_bmethod.rb
index 09f52140b9..2d68adc1b9 100644
--- a/test/-ext-/proc/test_bmethod.rb
+++ b/test/-ext-/proc/test_bmethod.rb
@@ -21,4 +21,11 @@ class TestProc::TestBMethod
obj = Bound.new
assert_equal([1, 42], obj.foo(1))
end
+
+ def test_block_super
+ obj = Bound.new
+ result = nil
+ obj.foo(2) {|*a| result = a}
+ assert_equal([2, 42], result)
+ end
end