Sha256: ea6da8125a7b67d9390a687d62da2d84a93676f774b005d5a5dd51405f77d20e
Contents?: true
Size: 290 Bytes
Versions: 3
Compression:
Stored size: 290 Bytes
Contents
require 'spec_helper' describe Squib.logger do it 'uses the custom format' do Squib.logger = nil oldstdout = $stdout $stdout = StringIO.new Squib::logger.warn 'Test warn' expect($stdout.string).to match /WARN: Test warn/ $stdout = oldstdout end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
squib-0.12.0 | spec/logger_spec.rb |
squib-0.11.0 | spec/logger_spec.rb |
squib-0.10.0 | spec/logger_spec.rb |