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

Version Path
bixby-common-0.4.4 test/util/log_test.rb
bixby-common-0.4.3 test/util/log_test.rb
bixby-common-0.4.2 test/util/log_test.rb
bixby-common-0.4.1 test/util/log_test.rb
bixby-common-0.4.0 test/util/log_test.rb
bixby-common-0.3.16 test/util/log_test.rb
bixby-common-0.3.15 test/util/log_test.rb
bixby-common-0.3.14 test/util/log_test.rb
bixby-common-0.3.13 test/util/log_test.rb
bixby-common-0.3.12 test/util/log_test.rb
bixby-common-0.3.11 test/util/log_test.rb
bixby-common-0.3.10 test/util/log_test.rb
bixby-common-0.3.9 test/util/log_test.rb