From c69955e64648ab6a3471a54f7885a320428682f9 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 18 Nov 2010 14:37:05 -0800 Subject: switch entirely to kgio_wait_*able methods This removes the global Kgio.wait_*able accesors and requires each class to define (or fall back to) the Kgio::DefaultWaiters methods. --- test/test_unix_connect.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test/test_unix_connect.rb') diff --git a/test/test_unix_connect.rb b/test/test_unix_connect.rb index 4b7519c..f99a877 100644 --- a/test/test_unix_connect.rb +++ b/test/test_unix_connect.rb @@ -6,7 +6,7 @@ require 'tempfile' class SubSocket < Kgio::Socket attr_accessor :foo - def wait_writable + def kgio_wait_writable @foo = "waited" end end @@ -57,7 +57,6 @@ class TestKgioUnixConnect < Test::Unit::TestCase end def test_socket_start - Kgio::wait_writable = :wait_writable sock = SubSocket.start(@addr) assert_nil sock.foo ready = IO.select(nil, [ sock ]) @@ -66,7 +65,6 @@ class TestKgioUnixConnect < Test::Unit::TestCase end def test_wait_writable_set - Kgio::wait_writable = :wait_writable sock = SubSocket.new(@addr) assert_kind_of Kgio::Socket, sock assert_instance_of SubSocket, sock -- cgit v1.2.3-24-ge0c7