summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-19 02:00:27 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-19 02:00:27 +0000
commit33fc55acef6a2d7b79cf5ac084bbb94cb3b14b31 (patch)
tree1e6ce644f700a162f63bfcbf278fae6c5ffad0b6 /test/ruby
parent3d57dfa01b8603da4d63a85014fa4cd0b640048e (diff)
* vm_method.c (me_opts): fixed optimized method aliasing.
[ruby-dev:38824] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_alias.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ruby/test_alias.rb b/test/ruby/test_alias.rb
index f66c4a6..7f8a32c 100644
--- a/test/ruby/test_alias.rb
+++ b/test/ruby/test_alias.rb
@@ -69,4 +69,12 @@ class TestAlias < Test::Unit::TestCase
}
}
end
+
+ def test_send_alias
+ x = "abc"
+ class << x
+ alias_method :try, :__send__
+ end
+ assert_equal("ABC", x.try(:upcase), '[ruby-dev:38824]')
+ end
end