Sha256: fc25502466bf2ed4d7167cb57e58c84d3d3c57c52a1305ae41eef29aa862b32d
Contents?: true
Size: 878 Bytes
Versions: 4
Compression:
Stored size: 878 Bytes
Contents
# Copyright (c) 2011 - 2013, SoundCloud Ltd. require File.expand_path(File.dirname(__FILE__)) + '/unit_helper' describe Lhm do before(:each) do Lhm.remove_class_variable :@@logger if Lhm.class_variable_defined? :@@logger end describe 'logger' do it 'should use the default parameters if no logger explicitly set' do value(Lhm.logger).must_be_kind_of Logger value(Lhm.logger.level).must_equal Logger::INFO value(Lhm.logger.instance_eval { @logdev }.dev).must_equal STDOUT end it 'should use s new logger if set' do l = Logger.new('omg.ponies') l.level = Logger::ERROR Lhm.logger = l value(Lhm.logger.level).must_equal Logger::ERROR value(Lhm.logger.instance_eval { @logdev }.dev).must_be_kind_of File value(Lhm.logger.instance_eval { @logdev }.dev.path).must_equal 'omg.ponies' end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
lhm-shopify-3.5.0 | spec/unit/lhm_spec.rb |
lhm-shopify-3.5.1 | spec/unit/lhm_spec.rb |
lhm-shopify-3.4.2 | spec/unit/lhm_spec.rb |
lhm-shopify-3.4.1 | spec/unit/lhm_spec.rb |