Sha256: ef179f85b61f4c9015f415fe2230ac109582a41a31cf93bb5eacce1e98595589

Contents?: true

Size: 212 Bytes

Versions: 4

Compression:

Stored size: 212 Bytes

Contents

class FakeLogger

  attr_reader :lines

  def initialize
    @lines = []
  end

  def error( message )
    @lines << message
  end

  def to_s
    @lines.join("\n")
  end

  def flush
    @flush = true
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
safely-0.3.2 spec/support/fake_logger.rb
safely-0.3.1 spec/support/fake_logger.rb
safely-0.3.0 spec/support/fake_logger.rb
safely-0.2.0 spec/support/fake_logger.rb