Sha256: 653a0c5aff07cfb46ffc75bf316b32a4a95a7260fadd9190223a2b482c1e2b44
Contents?: true
Size: 744 Bytes
Versions: 67
Compression:
Stored size: 744 Bytes
Contents
require File.expand_path('../spec_helper', __FILE__) require "pid_behavior" if ChildProcess.windows? describe ChildProcess::Windows::Process do it_behaves_like "a platform that provides the child's pid" end describe ChildProcess::Windows::IO do let(:io) { ChildProcess::Windows::IO.new } it "raises an ArgumentError if given IO does not respond to :fileno" do expect { io.stdout = nil }.to raise_error(ArgumentError, /must have :fileno or :to_io/) end it "raises an ArgumentError if the #to_io does not return an IO " do fake_io = Object.new def fake_io.to_io() StringIO.new end expect { io.stdout = fake_io }.to raise_error(ArgumentError, /must have :fileno or :to_io/) end end end
Version data entries
67 entries across 54 versions & 9 rubygems