Sha256: eba28004562f5f9343b1bcbb13d193431c23012f0f096223b5db74b4680a1058

Contents?: true

Size: 454 Bytes

Versions: 17

Compression:

Stored size: 454 Bytes

Contents

# frozen_string_literal: true

require 'test_helper'

class TestInternalLogger < Minitest::Test

  def test_levels
    logger_a = Prefab::InternalLogger.new(A)
    logger_b = Prefab::InternalLogger.new(B)

    assert_equal :warn, logger_a.level
    assert_equal :warn, logger_b.level

    Prefab::InternalLogger.using_prefab_log_filter!
    assert_equal :trace, logger_a.level
    assert_equal :trace, logger_b.level
  end

end

class A
end

class B
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
prefab-cloud-ruby-1.8.8.pre.1 test/test_internal_logger.rb
prefab-cloud-ruby-1.8.7 test/test_internal_logger.rb
prefab-cloud-ruby-1.8.6 test/test_internal_logger.rb
prefab-cloud-ruby-1.8.5 test/test_internal_logger.rb
prefab-cloud-ruby-1.8.4 test/test_internal_logger.rb
prefab-cloud-ruby-1.8.3 test/test_internal_logger.rb
prefab-cloud-ruby-1.8.2 test/test_internal_logger.rb
prefab-cloud-ruby-1.8.1 test/test_internal_logger.rb
prefab-cloud-ruby-1.8.0 test/test_internal_logger.rb
prefab-cloud-ruby-1.7.2 test/test_internal_logger.rb
prefab-cloud-ruby-1.7.1 test/test_internal_logger.rb
prefab-cloud-ruby-1.7.0 test/test_internal_logger.rb
prefab-cloud-ruby-1.6.2 test/test_internal_logger.rb
prefab-cloud-ruby-1.6.1 test/test_internal_logger.rb
prefab-cloud-ruby-1.6.0 test/test_internal_logger.rb
prefab-cloud-ruby-1.6.0.pre2 test/test_internal_logger.rb
prefab-cloud-ruby-1.6.0.pre1 test/test_internal_logger.rb