summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-11 01:40:30 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-11 01:40:30 +0000
commit427347626599135f6b9aa84018df8ac23685c35f (patch)
tree1053a8b3a5b3b88992d889045aee42a6c54cea46 /test
parente45b87f282eba212d911c3e1c01684ed606869b6 (diff)
add tests of UnboundMethod#{name,owner}
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_method.rb2
1 files changed, 2 insertions, 0 deletions
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