Sha256: 300a489bc3f2a5759b32839bac3250f8190b412a28a320e7f2c016378b67ff9c

Contents?: true

Size: 220 Bytes

Versions: 7

Compression:

Stored size: 220 Bytes

Contents

class MockLogger
  def initialize
    @content = []
  end

  def info(*value)
  end
  alias_method :debug, :info

  def warn(*value)
    @content << value.join(' ')
  end

  def content
    @content.join("\n")
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
logstash-output-elasticsearch_http-2.0.4 spec/support/helpers.rb
logstash-output-elasticsearch_http-2.0.2 spec/support/helpers.rb
logstash-output-elasticsearch_http-2.0.1 spec/support/helpers.rb
logstash-output-elasticsearch_http-2.0.0 spec/support/helpers.rb
logstash-output-elasticsearch_http-1.0.0 spec/support/helpers.rb
logstash-output-elasticsearch_http-0.0.2 spec/support/helpers.rb
logstash-output-elasticsearch_http-0.0.1 spec/support/helpers.rb