Sha256: 738ee014544c84a5c61b9ed402792722138993608827bc4ab74778e03993091d
Contents?: true
Size: 555 Bytes
Versions: 4
Compression:
Stored size: 555 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/unittest_helper') require 'mock_pipeio' class TestPipeio < Test::Unit::TestCase def test_pipeio loop = Coolio::MockLoop.new loop.world = MockWorld.new cmd = "cat #{$test_dir}/txt/0.log" pipeio = Pmux::PipeIO.new cmd loop.attach pipeio str = nil pipeio.on_receive {|data| str = data } closed = false pipeio.on_close {closed = true} loop.world.run_once assert_match /START: \w+ /, str while !closed loop.world.run_once end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
pmux-0.1.3 | test/test_pipeio.rb |
pmux-0.1.2 | test/test_pipeio.rb |
pmux-0.1.1 | test/test_pipeio.rb |
pmux-0.1.0 | test/test_pipeio.rb |