Sha256: 2c561bfc74e809002f251d802afcf26b4e9e97c630717e7f08db280f2ee6951a
Contents?: true
Size: 391 Bytes
Versions: 83
Compression:
Stored size: 391 Bytes
Contents
require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../../spec_helper' describe "IO.pipe" do it "creates a two-ended pipe" do r, w = IO.pipe w.puts "test_create_pipe\\n" w.close r.read(16).should == "test_create_pipe" r.close end it "returns two IO objects" do r,w = IO.pipe r.should be_kind_of(IO) w.should be_kind_of(IO) end end
Version data entries
83 entries across 83 versions & 1 rubygems