Sha256: 769d97ab4d010b2058a9a3aa5d4199cdd4778277cbfd77394aceb61076014d0b
Contents?: true
Size: 808 Bytes
Versions: 22
Compression:
Stored size: 808 Bytes
Contents
require File.expand_path(__FILE__).sub(%r(/test/.*), '/test/test_helper.rb') require File.expand_path(__FILE__).sub(%r(.*/test/), '').sub(/test_(.*)\.rb/,'\1') require 'scout/exceptions' require 'scout/cmd' class TestClass < Test::Unit::TestCase def test_concurrent_stream_pipe io = CMD.cmd("ls", :pipe => true, :autojoin => true) io.read io.close end def test_concurrent_stream_process_failed assert_raise ConcurrentStreamProcessFailed do io = CMD.cmd("grep . NONEXISTINGFILE", :pipe => true, :autojoin => true) io.read io.close end end def test_concurrent_stream_process_failed_autojoin assert_raise ConcurrentStreamProcessFailed do io = CMD.cmd("grep . NONEXISTINGFILE", :pipe => true, :autojoin => true) io.read end end end
Version data entries
22 entries across 22 versions & 2 rubygems