summaryrefslogtreecommitdiff
path: root/test/ruby/test_method.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-13 09:12:04 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-13 09:12:04 +0000
commitaae1d28b6f33d1237e576317497d22158114f103 (patch)
tree23ee19f14aad054a990f6df5ff3178d4d47ed42c /test/ruby/test_method.rb
parentd40ef8a85c271c3570e778fb74f53d6401281a9d (diff)
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/ruby/test_method.rb')
-rw-r--r--test/ruby/test_method.rb1
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