diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-21 08:12:12 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-21 08:12:12 +0000 |
commit | f331b5584edbf106ab85f4663ddbe55031176b3a (patch) | |
tree | 78722938bfbba9b6f78af757d2d05c7402eb6325 /test/ruby | |
parent | 3a7c1e25c4f88d6cdfc6c9978aa6811dc548119b (diff) | |
download | ruby-f331b5584edbf106ab85f4663ddbe55031176b3a.tar.gz |
* proc.c (proc_binding): allow proc from method. [ruby-core:25589]
* vm.c (collect_local_variables_in_env): block iseq can be NULL.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_proc.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_proc.rb b/test/ruby/test_proc.rb index 5a00fdb123..6c2bae4c41 100644 --- a/test/ruby/test_proc.rb +++ b/test/ruby/test_proc.rb @@ -144,6 +144,7 @@ class TestProc < Test::Unit::TestCase def test_method_to_proc b = block() assert_equal "OK", b.call + assert_instance_of(Binding, b.binding, '[ruby-core:25589]') end def test_curry |