Skip to content

Commit

Permalink
add tests of UnboundMethod#{name,owner}
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
znz committed May 11, 2008
1 parent e45b87f commit 4273476
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
2 changes: 2 additions & 0 deletions test/ruby/test_method.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ def o.foo; end
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
Expand Down

0 comments on commit 4273476

Please sign in to comment.