mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add tests of UnboundMethod#{name,owner}
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e45b87f282
commit
4273476265
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue