summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_method.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-28 02:12:21 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-28 02:12:21 +0000
commit2b0dee5cb639b23fc59690c214acaa40b43380b2 (patch)
tree3dae5ac8d12b667e45c3bd2b90fd22a60b9a08fd /test/ruby/test_method.rb
parente4f026d2352c57f4a22fdd7f323f6189db2e0a00 (diff)
downloadruby-2b0dee5cb639b23fc59690c214acaa40b43380b2.tar.gz
ruby-2b0dee5cb639b23fc59690c214acaa40b43380b2.tar.xz
ruby-2b0dee5cb639b23fc59690c214acaa40b43380b2.zip
* proc.c (method_name): should return symbols instead of strings.
[ruby-dev:34531] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_method.rb')
-rw-r--r--test/ruby/test_method.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb
index 064e05271..ad05e04ab 100644
--- a/test/ruby/test_method.rb
+++ b/test/ruby/test_method.rb
@@ -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