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