test/appenders/test_console.rb in logging-0.1.0 vs test/appenders/test_console.rb in logging-0.2.0

- old
+ new

@@ -1,39 +1,39 @@ -# $Id: test_console.rb 2 2007-01-09 18:10:50Z tim_pease $ +# $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 + class TestStdout < Test::Unit::TestCase include LoggingTestCase def test_initialize - appender = ::Logging::Appenders::StdOut.new + 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 + end # class TestStdout - class TestStdErr < Test::Unit::TestCase + class TestStderr < Test::Unit::TestCase def test_initialize - appender = ::Logging::Appenders::StdErr.new + 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 # class TestStderr end # module TestAppenders end # module TestLogging # EOF