Sha256: a7d8c54ff0baa658677e10dea3f79d9eb8ee3370f6f0760e44e436de0b3439a2
Contents?: true
Size: 477 Bytes
Versions: 2
Compression:
Stored size: 477 Bytes
Contents
require 'spec/autorun' require 'sane' require_rel '../lib/windows_backport_process_spawn' require 'fileutils' describe "process spawn" do it "should give me a pid" do a = Process.spawn 'cmd /c "echo 3"' a.should be_a Fixnum end it "should allow for out" do FileUtils.rm 'out' if File.exist?('out') Process.spawn 'ls', :out => 'out' sleep 0.05 assert File.exist?('out') assert File.read('out').length > 0 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
windows_backport_process_spawn-0.1.1 | spec/spec.windows_backport_process_spawn.rb |
windows_backport_process_spawn-0.1.0 | spec/spec.windows_backport_process_spawn.rb |