Sha256: 202e21bae1ec079d8a2979a7df0152b2bc337a8295b76e9ad3816a798d6dd8f4
Contents?: true
Size: 943 Bytes
Versions: 11
Compression:
Stored size: 943 Bytes
Contents
# $Id: test_console.rb 17 2007-01-20 18:47:43Z tim_pease $ require 'test/setup.rb' module TestLogging module TestAppenders class TestStdout < Test::Unit::TestCase include LoggingTestCase def test_initialize appender = ::Logging::Appenders::Stdout.new assert_equal 'stdout', appender.name assert_same STDOUT, appender.instance_variable_get(:@io) appender.close assert_equal true, appender.closed? assert_equal false, STDOUT.closed? end end # class TestStdout class TestStderr < Test::Unit::TestCase def test_initialize appender = ::Logging::Appenders::Stderr.new assert_equal 'stderr', appender.name assert_same STDERR, appender.instance_variable_get(:@io) appender.close assert_equal true, appender.closed? assert_equal false, STDERR.closed? end end # class TestStderr end # module TestAppenders end # module TestLogging # EOF
Version data entries
11 entries across 11 versions & 1 rubygems