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.10 | test/lib/vedeu/logging/mono_logger_test.rb |
vedeu-0.6.9 | test/lib/vedeu/logging/mono_logger_test.rb |
vedeu-0.6.8 | test/lib/vedeu/logging/mono_logger_test.rb |