Sha256: 644e65b747b2a17562beb96def7803500905e10a4445ed3b312684c8787ddc5c

Contents?: true

Size: 911 Bytes

Versions: 9

Compression:

Stored size: 911 Bytes

Contents

require 'test_helper'

module Vedeu

  describe MonoLogger do

    let(:described) { Vedeu::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::LocklessLogDevice) }
      end

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

  end # MonoLogger

end # Vedeu

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
vedeu-0.6.7 test/lib/vedeu/log/mono_logger_test.rb
vedeu-0.6.6 test/lib/vedeu/log/mono_logger_test.rb
vedeu-0.6.5 test/lib/vedeu/log/mono_logger_test.rb
vedeu-0.6.4 test/lib/vedeu/log/mono_logger_test.rb
vedeu-0.6.3 test/lib/vedeu/log/mono_logger_test.rb
vedeu-0.6.2 test/lib/vedeu/log/mono_logger_test.rb
vedeu-0.6.1 test/lib/vedeu/log/mono_logger_test.rb
vedeu-0.6.0 test/lib/vedeu/log/mono_logger_test.rb
vedeu-0.5.13 test/lib/vedeu/log/mono_logger_test.rb