Sha256: fe4ccfe2ab32f984a708a9f2f42ef7b6cf8ef6a15ae5e8a50c8d7049d4145305
Contents?: true
Size: 555 Bytes
Versions: 2
Compression:
Stored size: 555 Bytes
Contents
# encoding: utf-8 require "stud/temporary" require "fileutils" if Gem.win_platform? require "lib/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 volume_serial, file_index_low, file_index_high = Winhelper.GetWindowsUniqueFileIdentifier(path).split("").map(&:to_i) expect(volume_serial).not_to eq(0) expect(file_index_low).not_to eq(0) expect(file_index_high).not_to eq(0) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
logstash-input-file-4.1.3 | spec/filewatch/winhelper_spec.rb |
logstash-input-file-4.1.2 | spec/filewatch/winhelper_spec.rb |