Sha256: 286f4d18f87be6213d525f98c7debb41f65fdf412591959be308f19d39d13d62
Contents?: true
Size: 511 Bytes
Versions: 13
Compression:
Stored size: 511 Bytes
Contents
require 'helper' module Bixby module Test class TestLog < MiniTest::Unit::TestCase def test_setup_logger ENV["BIXBY_DEBUG"] = "1" Bixby::Log.setup_logger assert_equal 0, Logging::Logger.root.level # debug ENV.delete("BIXBY_DEBUG") Bixby::Log.setup_logger assert_equal 2, Logging::Logger.root.level # warn ENV.delete("BIXBY_DEBUG") Bixby::Log.setup_logger(:level => :info) assert_equal 1, Logging::Logger.root.level # info end end # TestLog end # Test end # Bixby
Version data entries
13 entries across 13 versions & 1 rubygems