Sha256: e1bb06b8363a87427e87450b63eefb831a272a6239aa2df9063aa9d1f93eb7c2
Contents?: true
Size: 613 Bytes
Versions: 4
Compression:
Stored size: 613 Bytes
Contents
require File.expand_path('../spec_helper', __FILE__) if ChildProcess.windows? describe ChildProcess::Windows::IO do let(:io) { ChildProcess::Windows::IO.new } it "raises an ArgumentError if given IO does not respond to :fileno" do lambda { io.stdout = nil }.should 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 lambda { io.stdout = fake_io }.should raise_error(ArgumentError, /must have :fileno or :to_io/) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
childprocess-0.1.6 | spec/windows_spec.rb |
childprocess-0.1.5 | spec/windows_spec.rb |
childprocess-0.1.4 | spec/windows_spec.rb |
childprocess-0.1.3 | spec/windows_spec.rb |