Sha256: e3ade2ddaca27991d0fcd9ad94a3318f0ea2d11ae3d017da6fa651aa8928fb5b
Contents?: true
Size: 537 Bytes
Versions: 33
Compression:
Stored size: 537 Bytes
Contents
require 'spec_helper' describe Aptible::CLI do describe described_class::TtyLogFormatter do subject do Logger.new(File.open(File::NULL, 'w')).tap do |l| l.formatter = described_class.new end end it 'formats DEBUG' do subject.debug 'foo' end it 'formats INFO' do subject.info 'foo' end it 'formats WARN' do subject.warn 'foo' end it 'formats ERROR' do subject.error 'foo' end it 'formats FATAL' do subject.fatal 'foo' end end end
Version data entries
33 entries across 33 versions & 1 rubygems