diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | test/ruby/test_method.rb | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -5720,7 +5720,7 @@ Thu Jan 3 21:56:07 2008 Tanaka Akira <akr@fsij.org> Thu Jan 3 20:24:48 2008 Koichi Sasada <ko1@atdot.net> - * eval_jump.c (rb_f_catch): Restore cfp if catched thrown object. + * eval_jump.c (rb_f_catch): Restore cfp if caught thrown object. Thu Jan 3 19:45:57 2008 Koichi Sasada <ko1@atdot.net> diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb index ad05e04aba..d786c1d5f9 100644 --- a/test/ruby/test_method.rb +++ b/test/ruby/test_method.rb @@ -109,6 +109,8 @@ class TestMethod < Test::Unit::TestCase assert_equal(o, m.receiver) assert_equal(:foo, m.name) assert_equal(class << o; self; end, m.owner) + assert_equal("foo", m.unbind.name) + assert_equal(class << o; self; end, m.unbind.owner) end def test_instance_method |