Achievement Unlocked: true 100% coverage.

This commit is contained in:
Andy Meneely
2015-01-05 23:26:13 -05:00
parent b0d4ce8018
commit c0556153b7
2 changed files with 13 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
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