From 40816e8ba28ffd52e6e02a258a8819cb288ab713 Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 12 Sep 2005 16:29:08 +0000 Subject: [PATCH] * test/socket/test_{udp,socket}.rb: revert unintentional commit. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/socket/test_socket.rb | 2 +- test/socket/test_udp.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/socket/test_socket.rb b/test/socket/test_socket.rb index 5724938f6b..3e293d373c 100644 --- a/test/socket/test_socket.rb +++ b/test/socket/test_socket.rb @@ -61,7 +61,7 @@ class TestBasicSocket < Test::Unit::TestCase def test_listen s = nil log = Object.new - class << log; self end.fcall(:define_method, :to_int) { + class << log; self end.send(:define_method, :to_int) { s.close 2 } diff --git a/test/socket/test_udp.rb b/test/socket/test_udp.rb index 3f5f55a467..602adccf1c 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.fcall(:define_method, :to_str) { + class << host; self end.send(:define_method, :to_str) { s.close "127.0.0.1" }