summaryrefslogtreecommitdiff
path: root/test/ruby/test_alias.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_alias.rb')
-rw-r--r--test/ruby/test_alias.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_alias.rb b/test/ruby/test_alias.rb
index 18a7d475e20..4076de051b5 100644
--- a/test/ruby/test_alias.rb
+++ b/test/ruby/test_alias.rb
@@ -56,7 +56,7 @@ class TestAlias < Test::Unit::TestCase
d = lambda {
$SAFE = 4
dclass = Class.new(C)
- dclass.funcall(:alias_method, :mm, :m)
+ dclass.send!(:alias_method, :mm, :m)
dclass.new
}.call
assert_raise(SecurityError) { d.mm }