class TestUnitOutput

Public Instance Methods

test_capture_output() click to toggle source
# File test-unit-3.3.4/test/util/test-output.rb, line 4
def test_capture_output
  assert_equal(["stdout\n", "stderr\n"],
               capture_output do
                 puts("stdout")
                 warn("stderr")
               end)
end