Sha256: 9195684378b203d27c706f6003e13ab1305d066559d8d8f524963ca581176fc8

Contents?: true

Size: 501 Bytes

Versions: 1

Compression:

Stored size: 501 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(:info)
    assert_equal 1, Logging::Logger.root.level # info
  end

end # TestLog

end # Test
end # Bixby

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bixby-common-0.3.8 test/util/log_test.rb