Sha256: 5bfeed061125d520f472de6eaba6eb716a4786e140c07a86f0b87ac979726b8c
Contents?: true
Size: 975 Bytes
Versions: 3
Compression:
Stored size: 975 Bytes
Contents
# $Id: test_console.rb 88 2008-02-08 18:47:36Z tim_pease $ require File.join(File.dirname(__FILE__), %w[.. setup]) 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
logging-0.7.0 | test/appenders/test_console.rb |
logging-0.6.3 | test/appenders/test_console.rb |
logging-0.7.1 | test/appenders/test_console.rb |