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.71 test/lib/vedeu/logging/mono_logger_test.rb
vedeu-0.6.70 test/lib/vedeu/logging/mono_logger_test.rb
vedeu-0.6.69 test/lib/vedeu/logging/mono_logger_test.rb
vedeu-0.6.68 test/lib/vedeu/logging/mono_logger_test.rb
vedeu-0.6.67 test/lib/vedeu/logging/mono_logger_test.rb
vedeu-0.6.66 test/lib/vedeu/logging/mono_logger_test.rb
vedeu-0.6.65 test/lib/vedeu/logging/mono_logger_test.rb
vedeu-0.6.64 test/lib/vedeu/logging/mono_logger_test.rb
vedeu-0.6.63 test/lib/vedeu/logging/mono_logger_test.rb
vedeu-0.6.62 test/lib/vedeu/logging/mono_logger_test.rb
vedeu-0.6.61 test/lib/vedeu/logging/mono_logger_test.rb
vedeu-0.6.60 test/lib/vedeu/logging/mono_logger_test.rb
vedeu-0.6.59 test/lib/vedeu/logging/mono_logger_test.rb
vedeu-0.6.58 test/lib/vedeu/logging/mono_logger_test.rb
vedeu-0.6.57 test/lib/vedeu/logging/mono_logger_test.rb
vedeu-0.6.56 test/lib/vedeu/logging/mono_logger_test.rb
vedeu-0.6.54 test/lib/vedeu/logging/mono_logger_test.rb
vedeu-0.6.53 test/lib/vedeu/logging/mono_logger_test.rb
vedeu-0.6.52 test/lib/vedeu/logging/mono_logger_test.rb
vedeu-0.6.51 test/lib/vedeu/logging/mono_logger_test.rb