about summary refs log tree commit homepage
path: root/test/test_buffer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_buffer.rb')
-rw-r--r--test/test_buffer.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_buffer.rb b/test/test_buffer.rb
index 13f4352..d41d07c 100644
--- a/test/test_buffer.rb
+++ b/test/test_buffer.rb
@@ -15,6 +15,11 @@ class TestBuffer < Testcase
 
   def pipe
     ret = IO.pipe
+    ret.each do |x|
+      def x.ready_write_optimized?
+        false
+      end
+    end
     @to_close.concat(ret)
     ret
   end