Sha256: d097e7bce298da70945586b54be6dcf92e29db99863471ae9d17d9dc5e949fa6

Contents?: true

Size: 312 Bytes

Versions: 4

Compression:

Stored size: 312 Bytes

Contents

require 'logstash-logger'

describe LogStashLogger::Device::Stdout do
  it "writes to $stdout" do
    expect(subject.to_io).to eq($stdout)
    expect($stdout).to receive(:write).once
    subject.write("test")
  end

  it "ignores #close" do
    expect($stdout).not_to receive(:close)
    subject.close
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
logstash-logger-0.6.2 spec/device/stdout_spec.rb
logstash-logger-0.6.1 spec/device/stdout_spec.rb
logstash-logger-0.6.0 spec/device/stdout_spec.rb
logstash-logger-0.5.0 spec/device/stdout_spec.rb