Sha256: d31862e6f868f3db92c342986af19d2eba9731e4c3623a5b10af6355a5c602aa
Contents?: true
Size: 347 Bytes
Versions: 1
Compression:
Stored size: 347 Bytes
Contents
require 'test_helper' class StreamExecTest < Test::Unit::TestCase def test_local_irb_stream command = "irb" output, input, pid = PTY.spawn(command) stream = Hatchet::StreamExec.new(output, input, pid) stream.run("STDOUT.sync = true\n") assert_equal "1+1\r\n => 2 \r\n", stream.run("1+1\n") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
heroku_hatchet-0.2.0 | test/hatchet/stream_exec_test.rb |