You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

12 lines
285 B

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