Sha256: 606b12c2c7dd991ba2cfe83ec94e2818f8fbf4df1d182a889934ec0520d8c3c0

Contents?: true

Size: 448 Bytes

Versions: 29

Compression:

Stored size: 448 Bytes

Contents

# encoding: utf-8
require "stud/temporary"
require "fileutils"

if Gem.win_platform?
  require "filewatch/winhelper"

  describe Winhelper do
    let(:path) { Stud::Temporary.file.path }

    after do
      FileUtils.rm_rf(path)
    end

    it "return a unique file identifier" do
      identifier = Winhelper.identifier_from_path(path)

      expect(identifier).not_to eq("unknown")
      expect(identifier.count("-")).to eq(2)
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
logstash-input-file-4.4.6 spec/filewatch/winhelper_spec.rb
logstash-input-file-4.4.5 spec/filewatch/winhelper_spec.rb
logstash-input-file-4.4.4 spec/filewatch/winhelper_spec.rb
logstash-input-file-4.4.3 spec/filewatch/winhelper_spec.rb
logstash-input-file-4.4.2 spec/filewatch/winhelper_spec.rb
logstash-input-file-4.4.1 spec/filewatch/winhelper_spec.rb
logstash-input-file-4.4.0 spec/filewatch/winhelper_spec.rb
logstash-input-file-4.3.1 spec/filewatch/winhelper_spec.rb
logstash-input-file-4.3.0 spec/filewatch/winhelper_spec.rb
logstash-input-file-4.2.4 spec/filewatch/winhelper_spec.rb
logstash-input-file-4.2.3 spec/filewatch/winhelper_spec.rb
logstash-input-file-4.2.2 spec/filewatch/winhelper_spec.rb
logstash-input-file-4.2.1 spec/filewatch/winhelper_spec.rb
logstash-input-file-4.2.0 spec/filewatch/winhelper_spec.rb
logstash-input-file-4.1.18 spec/filewatch/winhelper_spec.rb
logstash-input-file-4.1.17 spec/filewatch/winhelper_spec.rb
logstash-input-file-4.1.16 spec/filewatch/winhelper_spec.rb
logstash-input-file-4.1.15 spec/filewatch/winhelper_spec.rb
logstash-input-file-4.1.14 spec/filewatch/winhelper_spec.rb
logstash-input-file-4.1.13 spec/filewatch/winhelper_spec.rb