Sha256: c9ff652537d5d157ad2dfc59b8e3ad98f0381fec1573fa7e24ddea78f06cd5df

Contents?: true

Size: 1.09 KB

Versions: 63

Compression:

Stored size: 1.09 KB

Contents

require 'test_helper'

module Vedeu

  module Logging

    describe MonoLogger do

      let(:described) { Vedeu::Logging::MonoLogger }
      let(:instance)  { described.new(logdev) }
      let(:logdev)    {}

      describe '#initialize' do
        it { instance.must_be_instance_of(described) }
        it {
          instance.instance_variable_get('@level').must_equal(Logger::DEBUG)
        }
        it {
          instance.instance_variable_get('@default_formatter').
            must_be_instance_of(::Logger::Formatter)
        }
        it { instance.instance_variable_get('@Formatter').must_equal(nil) }

        context 'when a log device is given' do
          # it {
          #   instance.instance_variable_get('@logdev').
          #     must_be_instance_of(Vedeu::Logging::LocklessLogDevice)
          # }
        end

        context 'when a log device is not given' do
          # it {
          #   instance.instance_variable_get('@logdev').
          #     must_be_instance_of(Vedeu::Logging::LocklessLogDevice)
          # }
        end
      end

    end # MonoLogger

  end # Logging

end # Vedeu

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
vedeu-0.6.30 test/lib/vedeu/logging/mono_logger_test.rb
vedeu-0.6.29 test/lib/vedeu/logging/mono_logger_test.rb
vedeu-0.6.28 test/lib/vedeu/logging/mono_logger_test.rb
vedeu-0.6.27 test/lib/vedeu/logging/mono_logger_test.rb
vedeu-0.6.26 test/lib/vedeu/logging/mono_logger_test.rb
vedeu-0.6.25 test/lib/vedeu/logging/mono_logger_test.rb
vedeu-0.6.24 test/lib/vedeu/logging/mono_logger_test.rb
vedeu-0.6.23 test/lib/vedeu/logging/mono_logger_test.rb
vedeu-0.6.22 test/lib/vedeu/logging/mono_logger_test.rb
vedeu-0.6.21 test/lib/vedeu/logging/mono_logger_test.rb
vedeu-0.6.20 test/lib/vedeu/logging/mono_logger_test.rb
vedeu-0.6.19 test/lib/vedeu/logging/mono_logger_test.rb
vedeu-0.6.18 test/lib/vedeu/logging/mono_logger_test.rb
vedeu-0.6.17 test/lib/vedeu/logging/mono_logger_test.rb
vedeu-0.6.16 test/lib/vedeu/logging/mono_logger_test.rb
vedeu-0.6.15 test/lib/vedeu/logging/mono_logger_test.rb
vedeu-0.6.14 test/lib/vedeu/logging/mono_logger_test.rb
vedeu-0.6.13 test/lib/vedeu/logging/mono_logger_test.rb
vedeu-0.6.12 test/lib/vedeu/logging/mono_logger_test.rb
vedeu-0.6.11 test/lib/vedeu/logging/mono_logger_test.rb