Sha256: 172c6683996defba422dcc951819f40216222337ff12ab5e68a382c590549a72

Contents?: true

Size: 452 Bytes

Versions: 4

Compression:

Stored size: 452 Bytes

Contents

# encoding: utf-8
require "logstash/devutils/rspec/spec_helper"
require "logstash/inputs/s3l"
require "stud/temporary"
require "fileutils"

describe LogStash::Inputs::S3L::SinceDB::File do
  let(:file) { Stud::Temporary.file.path }
  subject { LogStash::Inputs::S3L::SinceDB::File.new(file) }
  before do
    FileUtils.touch(file)
  end

  it "doesnt raise an exception if the file is empty" do
    expect { subject.read }.not_to raise_error
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
logstash-input-s3-local-3.4.1 spec/inputs/sincedb_spec.rb
logstash-input-s3-local-3.4.0 spec/inputs/sincedb_spec.rb
logstash-input-s3-local-3.3.9 spec/inputs/sincedb_spec.rb
logstash-input-s3-local-3.3.8 spec/inputs/sincedb_spec.rb