diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-28 07:20:40 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-28 07:20:40 +0000 |
commit | 7149859bc35cfe7497a1e98118f22a1628e8703d (patch) | |
tree | 4b27d0d86783576fe99e59c394e717e54628610b /test/ruby/test_proc.rb | |
parent | 3412d1016a4a166d7e7bf32e56bcde5cc25f19ae (diff) |
merge revision(s) 48160: [Backport #10432]
* proc.c (method_proc): the receiver of binding from method should
be same as the receiver of the method.
[ruby-core:65917] [Bug #10432]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@48633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_proc.rb')
-rw-r--r-- | test/ruby/test_proc.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/ruby/test_proc.rb b/test/ruby/test_proc.rb index 2db9108534..da7f07ef6c 100644 --- a/test/ruby/test_proc.rb +++ b/test/ruby/test_proc.rb @@ -179,7 +179,10 @@ 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]') + b = b.binding + assert_instance_of(Binding, b, '[ruby-core:25589]') + bug10432 = '[ruby-core:65919] [Bug #10432]' + assert_same(self, b.eval("self"), bug10432) end def test_block_given_method |