Sha256: 6ae94849606d5fca87a25b5021f5cad25eda8a2c8db4bed792d0f0d15890c35b

Contents?: true

Size: 256 Bytes

Versions: 6

Compression:

Stored size: 256 Bytes

Contents

require 'spec_helper'
require "stringio"

describe Grim::NullLogger do
  it "acts like Logger but doesn't log anything" do
    io = StringIO.new
    logger = Grim::NullLogger.new(io)
    logger.debug "hello world"
    expect(io.string).to eq("")
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
grim-1.3.5 spec/lib/grim/null_logger_spec.rb
grim-1.3.4 spec/lib/grim/null_logger_spec.rb
grim-1.3.3 spec/lib/grim/null_logger_spec.rb
grim-1.3.2 spec/lib/grim/null_logger_spec.rb
grim-1.3.1 spec/lib/grim/null_logger_spec.rb
grim-1.3.0 spec/lib/grim/null_logger_spec.rb