diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-02-13 09:12:04 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-02-13 09:12:04 +0000 |
commit | aae1d28b6f33d1237e576317497d22158114f103 (patch) | |
tree | 23ee19f14aad054a990f6df5ff3178d4d47ed42c /test | |
parent | d40ef8a85c271c3570e778fb74f53d6401281a9d (diff) | |
download | ruby-aae1d28b6f33d1237e576317497d22158114f103.tar.gz |
proc.c: original_name
* proc.c (method_original_name): new methods Method#original_name and
UnboundMethod#original_name. [ruby-core:52048] [Bug #7806]
[EXPERIMENTAL]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_method.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb index 2ef37c4af6..ad68357ddf 100644 --- a/test/ruby/test_method.rb +++ b/test/ruby/test_method.rb @@ -194,6 +194,7 @@ class TestMethod < Test::Unit::TestCase end m = o.method(:bar) assert_equal(:bar, m.name) + assert_equal(:foo, m.original_name) end def test_instance_method |