|
|
|
@ -6,7 +6,7 @@ describe Squib.logger do |
|
|
|
oldstdout = $stdout |
|
|
|
oldstdout = $stdout |
|
|
|
$stdout = StringIO.new |
|
|
|
$stdout = StringIO.new |
|
|
|
Squib::logger.warn 'Test warn' |
|
|
|
Squib::logger.warn 'Test warn' |
|
|
|
expect($stdout.string).to match /WARN: Test warn/ |
|
|
|
expect($stdout.string).to match /\[.+WARN.*\] Test warn/ |
|
|
|
$stdout = oldstdout |
|
|
|
$stdout = oldstdout |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|