Sha256: 1b1f8c5834e08575d6117e68659b9778db79b0f03d27a014ac793461b8e312ac
Contents?: true
Size: 411 Bytes
Versions: 3
Compression:
Stored size: 411 Bytes
Contents
require_relative '../helper' require 'termistat/tee_io' class TestTeeIO < MiniTest::Unit::TestCase def test_callback @capture = nil @tee_io = Termistat::TeeIO.new {|msg| @capture = msg } @tee_io.print "foo" assert_equal "foo", @capture end def test_output_is_recorded @tee_io = Termistat::TeeIO.new {|*args|} @tee_io.puts "foo" assert_equal "foo\n", @tee_io.string end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
termistat-0.0.3 | test/units/test_tee_io.rb |
termistat-0.0.2 | test/units/test_tee_io.rb |
termistat-0.0.1 | test/units/test_tee_io.rb |