Sha256: 2ffd474ddbaf5004598d75ff755eb9f9a6515a407365e6502a8e57a7bd6d1985
Contents?: true
Size: 597 Bytes
Versions: 8
Compression:
Stored size: 597 Bytes
Contents
require 'spec_helper' describe "IO.pipe" do let(:pair) { IO.pipe } let :unreadable_subject do pair.first end let :readable_subject do pipe, peer = pair peer << "data" pipe end let :writable_subject do pair.last end let :unwritable_subject do reader, pipe = IO.pipe begin pipe.write_nonblock "JUNK IN THE TUBES" _, writers = select [], [pipe], [], 0 rescue Errno::EPIPE break end while writers and writers.include? pipe pipe end it_behaves_like "an NIO selectable" it_behaves_like "an NIO selectable stream" end
Version data entries
8 entries across 8 versions & 1 rubygems