Sha256: 1d9ac121d668acb8cc5a7e31f13ad56511fc2fff873e4e766886c52f698688a6
Contents?: true
Size: 612 Bytes
Versions: 2
Compression:
Stored size: 612 Bytes
Contents
require 'hobo/logging' describe Hobo::Logging do before do Hobo.logger = nil end describe "module logger" do it "should return global logger instance" do Hobo.logger = "TEST" class LoggerTest include Hobo::Logging end LoggerTest.new.logger.should match "TEST" end end describe "global logger" do it "should initialize to STDOUT logger" do Hobo::Logging.logger.instance_variable_get('@logdev').dev.should be STDOUT end it "should initialize to WARN log level" do Hobo::Logging.logger.level.should eq Logger::WARN end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hobo-inviqa-0.0.7 | spec/hobo/logging_spec.rb |
hobo-inviqa-0.0.6 | spec/hobo/logging_spec.rb |