test/test_logging.rb in logging-1.7.1 vs test/test_logging.rb in logging-1.7.2
- old
+ new
@@ -139,11 +139,11 @@
end
def test_init_default
assert_equal({}, @levels)
assert_equal([], @lnames)
- assert_same false, ::Logging.const_defined?(:MAX_LEVEL_LENGTH)
+ assert_same false, ::Logging.initialized?
::Logging::Repository.instance
assert_equal 5, @levels.length
assert_equal 5, @lnames.length
@@ -163,11 +163,11 @@
end
def test_init_special
assert_equal({}, @levels)
assert_equal([], @lnames)
- assert_same false, ::Logging.const_defined?(:MAX_LEVEL_LENGTH)
+ assert_same false, ::Logging.initialized?
assert_raise(ArgumentError) {::Logging.init(1, 2, 3, 4)}
::Logging.init :one, 'two', :THREE, 'FoUr', :sIx
@@ -189,10 +189,10 @@
end
def test_init_all_off
assert_equal({}, @levels)
assert_equal([], @lnames)
- assert_same false, ::Logging.const_defined?(:MAX_LEVEL_LENGTH)
+ assert_same false, ::Logging.initialized?
::Logging.init %w(a b all c off d)
assert_equal 4, @levels.length
assert_equal 4, @lnames.length