<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,6 +1,21 @@
 require File.dirname(__FILE__) + '/../../spec_helper'
 
 describe &quot;IO#popen&quot; do
+  it &quot;reads from a read-only pipe&quot; do
+    IO.popen(&quot;echo foo&quot;, &quot;r&quot;) do |pipe|
+      pipe.read.should == &quot;foo\n&quot;
+    end
+  end
+
+  platform_is_not :mswin32 do
+    it &quot;writes to a read/write pipe&quot; do
+      IO.popen(&quot;cat&quot;, &quot;r+&quot;) do |pipe|
+        pipe.write(&quot;bar&quot;)
+        pipe.read 3
+      end.should == &quot;bar&quot;
+    end
+  end
+
   it &quot;with block does not raise error when io closed inside the block&quot; do
     lambda {
       @io = IO.popen(RUBY_NAME, &quot;r+&quot;) { |io| io.close; io }</diff>
      <filename>spec/ruby/1.8/core/io/popen_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,2 +1,3 @@
+fails:writes to a read/write pipe
 fails:IO#popen with block does not raise error when io closed inside the block
 incomplete:IO.popen needs to be reviewed for spec completeness</diff>
      <filename>spec/tags/ruby/1.8/core/io/popen_tags.txt</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1af4a3eebef3a62a79a439807d7444d5ce1d7a31</id>
    </parent>
  </parents>
  <author>
    <name>Adam Wiggins</name>
    <login></login>
    <email>adam@heroku.com</email>
  </author>
  <url>http://github.com/evanphx/rubinius/commit/10df9f89189637b2c5a54b01a88eca6c9fbb4601</url>
  <id>10df9f89189637b2c5a54b01a88eca6c9fbb4601</id>
  <committed-date>2008-04-20T15:53:16-07:00</committed-date>
  <authored-date>2008-04-20T14:53:41-07:00</authored-date>
  <message>IO.popen specs for reading and writing to pipes</message>
  <tree>84358ae13e2c77b1626dbab1296097eef7379a26</tree>
  <committer>
    <name>Federico Builes</name>
    <login>febuiles</login>
    <email>federico.builes@gmail.com</email>
  </committer>
</commit>
