diff options
| author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-11 01:38:12 +0000 |
|---|---|---|
| committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-11 01:38:12 +0000 |
| commit | 5fed7fa3490621c97596360b50693a53da1f5bee (patch) | |
| tree | bdf5672484e433c4a6bfd07f84e65847d745e790 /test/ruby/test_method.rb | |
| parent | f6487180736db9049de0b86b1103dcc46a74131b (diff) | |
* eval.c (method_name, method_owner): New methods; backported from 1.9. (UnboundMethod#name, UnboundMethod#owner)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_method.rb')
| -rw-r--r-- | test/ruby/test_method.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb index b22c2cba62..d721176aa0 100644 --- a/test/ruby/test_method.rb +++ b/test/ruby/test_method.rb @@ -47,5 +47,7 @@ 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 end |
