test/test_logging.rb in logging-0.9.8 vs test/test_logging.rb in logging-1.0.0
- old
+ new
@@ -48,15 +48,15 @@
assert_equal names, ::Logging::LNAMES
assert_equal :inspect, ::Logging::OBJ_FORMAT
assert_equal 3, ::Logging::Logger.root.level
# verify the appenders
- h = ::Logging::Appender.instance_variable_get :@appenders
+ h = ::Logging::Appenders.instance_variable_get :@appenders
assert_equal ['logfile', 'stderr'], h.keys.sort
# start with the File appender
- logfile = ::Logging::Appender['logfile']
+ logfile = ::Logging::Appenders['logfile']
assert_instance_of ::Logging::Appenders::File, logfile
assert_equal 0, logfile.level
assert_equal 'tmp/temp.log', logfile.instance_variable_get(:@fn)
layout = logfile.layout
@@ -64,10 +64,10 @@
assert_equal '[%d] %l %c : %m\\n', layout.pattern
assert_equal 'to_s', layout.date_method
assert_nil layout.date_pattern
# and now the Stderr appender
- stderr = ::Logging::Appender['stderr']
+ stderr = ::Logging::Appenders['stderr']
assert_instance_of ::Logging::Appenders::Stderr, stderr
assert_equal 0, stderr.level
layout = stderr.layout
assert_instance_of ::Logging::Layouts::Basic, layout