Sha256: ee4dea0586583f08122855f3f01c8f1e17ab10535ff984848545eef7fa450844

Contents?: true

Size: 288 Bytes

Versions: 9

Compression:

Stored size: 288 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

9 entries across 9 versions & 1 rubygems

Version Path
squib-0.9.0 spec/logger_spec.rb
squib-0.8.0 spec/logger_spec.rb
squib-0.7.0 spec/logger_spec.rb
squib-0.6.0 spec/logger_spec.rb
squib-0.5.1 spec/logger_spec.rb
squib-0.5.0 spec/logger_spec.rb
squib-0.4.0 spec/logger_spec.rb
squib-0.3.0 spec/logger_spec.rb
squib-0.2.0 spec/logger_spec.rb