Sha256: 09c1dc814e2df629038f2fe57ce135f3ec7590c4cc94f6af3cc6652fafee6a16

Contents?: true

Size: 264 Bytes

Versions: 27

Compression:

Stored size: 264 Bytes

Contents

require 'logstash-logger'

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

  subject { io_device }

  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

27 entries across 27 versions & 3 rubygems

Version Path
logstash-logger-p-0.26.1 spec/device/io_spec.rb
logstash-logger-yajl-0.27.0 spec/device/io_spec.rb
logstash-logger-0.26.1 spec/device/io_spec.rb
logstash-logger-0.26.0 spec/device/io_spec.rb
logstash-logger-0.25.1 spec/device/io_spec.rb
logstash-logger-0.25.0 spec/device/io_spec.rb
logstash-logger-0.24.1 spec/device/io_spec.rb
logstash-logger-0.24.0 spec/device/io_spec.rb
logstash-logger-0.23.0 spec/device/io_spec.rb
logstash-logger-0.22.1 spec/device/io_spec.rb
logstash-logger-0.22.0 spec/device/io_spec.rb
logstash-logger-0.21.0 spec/device/io_spec.rb
logstash-logger-0.20.1 spec/device/io_spec.rb
logstash-logger-0.20.0 spec/device/io_spec.rb
logstash-logger-0.19.2 spec/device/io_spec.rb
logstash-logger-0.19.1 spec/device/io_spec.rb
logstash-logger-0.19.0 spec/device/io_spec.rb
logstash-logger-0.18.1 spec/device/io_spec.rb
logstash-logger-0.18.0 spec/device/io_spec.rb
logstash-logger-0.17.0 spec/device/io_spec.rb