From f331b5584edbf106ab85f4663ddbe55031176b3a Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 21 Sep 2009 08:12:12 +0000 Subject: * 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 --- test/ruby/test_proc.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test/ruby/test_proc.rb') 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 -- cgit v1.2.3