Sha256: fc5d4c90d0f21c02a0491f051d337ec16487b1808ce6cf1d18800c3ed204fadd
Contents?: true
Size: 526 Bytes
Versions: 26
Compression:
Stored size: 526 Bytes
Contents
require "spec_helper" require "omnibus/file_syncer" module Omnibus describe FileSyncer do let(:fixture_dir) { "C:\\test" } describe "#glob", :windows_only do [ "/", "\\", "\\\\" ].each do |sep| it "should correctly clean the path with #{sep}" do pattern = fixture_dir + sep + "postinstall" expect(Dir).to receive(:glob).with("C:/test/postinstall", File::FNM_DOTMATCH).and_return(["C:/test/postinstall"]) FileSyncer.glob(pattern) end end end end end
Version data entries
26 entries across 26 versions & 1 rubygems