1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* proc.c (method_name): should return symbols instead of strings.

[ruby-dev:34531]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2008-04-28 02:12:21 +00:00
parent 59ba2bf0b6
commit 3d751cde0f
5 changed files with 13 additions and 8 deletions

View file

@ -107,7 +107,7 @@ class TestMethod < Test::Unit::TestCase
def o.foo; end
m = o.method(:foo)
assert_equal(o, m.receiver)
assert_equal("foo", m.name)
assert_equal(:foo, m.name)
assert_equal(class << o; self; end, m.owner)
end