test/test_logging.rb in logging-0.9.3 vs test/test_logging.rb in logging-0.9.4

- old
+ new

@@ -13,9 +13,33 @@ @fn = File.join(TMP, 'test.log') @glob = File.join(TMP, '*.log') end + def test_backtrace + assert_equal true, ::Logging.backtrace + + assert_equal false, ::Logging.backtrace('off') + assert_equal false, ::Logging.backtrace + + assert_equal true, ::Logging.backtrace('on') + assert_equal true, ::Logging.backtrace + + assert_equal false, ::Logging.backtrace(:off) + assert_equal false, ::Logging.backtrace + + assert_equal true, ::Logging.backtrace(:on) + assert_equal true, ::Logging.backtrace + + assert_equal false, ::Logging.backtrace(false) + assert_equal false, ::Logging.backtrace + + assert_equal true, ::Logging.backtrace(true) + assert_equal true, ::Logging.backtrace + + assert_raise(ArgumentError) {::Logging.backtrace 'foo'} + end + def test_configure assert_raise(ArgumentError) {::Logging.configure 'blah.txt'} ::Logging.configure 'data/logging.yaml'