Sha256: f699241e019268991ba8ff83401969c10465853d68bb244d03bc3976dd45d40a
Contents?: true
Size: 833 Bytes
Versions: 1
Compression:
Stored size: 833 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 Lhm.logger.must_be_kind_of Logger Lhm.logger.level.must_equal Logger::INFO 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 Lhm.logger.level.must_equal Logger::ERROR Lhm.logger.instance_eval{ @logdev }.dev.must_be_kind_of File Lhm.logger.instance_eval{ @logdev }.dev.path.must_equal 'omg.ponies' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lhm-2.1.0 | spec/unit/lhm_spec.rb |