Sha256: 6cb38ad3279740812bda2b025f5dec411cb7f91ec0f8d162fc2931c7ec2e09c8

Contents?: true

Size: 298 Bytes

Versions: 9

Compression:

Stored size: 298 Bytes

Contents

require 'logstash-logger'

describe LogStashLogger::Device::IO do
  include_context 'device'

  let(:subject) { io_device }
  let(:io) { StringIO.new }

  it "writes to the IO object" do
    expect(subject.to_io).to eq(io)
    expect(io).to receive(:write).once
    subject.write("test")
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
logstash-logger-0.12.0 spec/device/io_spec.rb
logstash-logger-0.11.0 spec/device/io_spec.rb
logstash-logger-0.10.3 spec/device/io_spec.rb
logstash-logger-0.10.2 spec/device/io_spec.rb
logstash-logger-0.10.1 spec/device/io_spec.rb
logstash-logger-0.10.0 spec/device/io_spec.rb
logstash-logger-0.9.0 spec/device/io_spec.rb
logstash-logger-0.8.0 spec/device/io_spec.rb
logstash-logger-0.7.0 spec/device/io_spec.rb