test/test_logging.rb in logging-1.7.2 vs test/test_logging.rb in logging-1.8.0
- old
+ new
@@ -1,7 +1,7 @@
-require File.expand_path('setup', File.dirname(__FILE__))
+require File.expand_path('../setup', __FILE__)
module TestLogging
class TestLogging < Test::Unit::TestCase
include LoggingTestCase
@@ -227,9 +227,14 @@
remove_const[:OBJ_FORMAT]
::Logging.format_as :inspect
assert ::Logging.const_defined?('OBJ_FORMAT')
assert_equal :inspect, ::Logging::OBJ_FORMAT
+ remove_const[:OBJ_FORMAT]
+
+ ::Logging.format_as :json
+ assert ::Logging.const_defined?('OBJ_FORMAT')
+ assert_equal :json, ::Logging::OBJ_FORMAT
remove_const[:OBJ_FORMAT]
::Logging.format_as :yaml
assert ::Logging.const_defined?('OBJ_FORMAT')
assert_equal :yaml, ::Logging::OBJ_FORMAT