aboutsummaryrefslogtreecommitdiffstats
path: root/test/socket/test_udp.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/socket/test_udp.rb')
-rw-r--r--test/socket/test_udp.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/socket/test_udp.rb b/test/socket/test_udp.rb
index 602adccf1c..3f5f55a467 100644
--- a/test/socket/test_udp.rb
+++ b/test/socket/test_udp.rb
@@ -21,7 +21,7 @@ class TestUDPSocket < Test::Unit::TestCase
def test_bind # [ruby-dev:25057]
s = UDPSocket.new
host = Object.new
- class << host; self end.send(:define_method, :to_str) {
+ class << host; self end.fcall(:define_method, :to_str) {
s.close
"127.0.0.1"
}