Sha256: 4def191ec7dbcc45fe09c57ea12d3d787e7db4fed0645bb8ee3ee0d20d9e8ac9

Contents?: true

Size: 319 Bytes

Versions: 12

Compression:

Stored size: 319 Bytes

Contents

require 'logstash-logger'

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

  it "writes to a file" do
    expect(file_device.to_io).to be_a ::File
  end

  context "when path is not specified" do
    it "raises an exception" do
      expect { described_class.new }.to raise_error
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
logstash-logger-0.12.0 spec/device/file_spec.rb
logstash-logger-0.11.0 spec/device/file_spec.rb
logstash-logger-0.10.3 spec/device/file_spec.rb
logstash-logger-0.10.2 spec/device/file_spec.rb
logstash-logger-0.10.1 spec/device/file_spec.rb
logstash-logger-0.10.0 spec/device/file_spec.rb
logstash-logger-0.9.0 spec/device/file_spec.rb
logstash-logger-0.8.0 spec/device/file_spec.rb
logstash-logger-0.7.0 spec/device/file_spec.rb
logstash-logger-0.6.2 spec/device/file_spec.rb
logstash-logger-0.6.1 spec/device/file_spec.rb
logstash-logger-0.6.0 spec/device/file_spec.rb