summaryrefslogtreecommitdiff
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.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/socket/test_udp.rb b/test/socket/test_udp.rb
index 07fd17a2cb..3f5f55a467 100644
--- a/test/socket/test_udp.rb
+++ b/test/socket/test_udp.rb
@@ -9,7 +9,7 @@ class TestUDPSocket < Test::Unit::TestCase
def test_connect # [ruby-dev:25045]
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"
}
@@ -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"
}