From 3d751cde0fbfceea1c92a8bdaf5ad8401f19e0e6 Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 28 Apr 2008 02:12:21 +0000 Subject: * 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 --- test/ruby/test_method.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/ruby/test_method.rb') diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb index 064e052715..ad05e04aba 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 -- cgit v1.2.3