Add rsync helper test for linux machines

This commit is contained in:
Brian Cain 2019-02-22 12:38:23 -08:00
parent 7517faa9ee
commit 45ca16ffd5
No known key found for this signature in database
GPG Key ID: 9FC4639B2E4510A0
1 changed files with 1 additions and 4 deletions

View File

@ -292,11 +292,8 @@ describe VagrantPlugins::SyncedFolderRSync::RsyncHelper do
expect(args[9]).to include("ControlPath=/tmp/vagrant-rsync-12345")
}.and_return(result)
expect(FileUtils).to receive(:remove_entry_secure).with("/tmp/vagrant-rsync-12345").and_return(true)
subject.rsync_single(machine, ssh_info, opts)
unless Vagrant::Util::Platform.windows?
expect(File.exist?("/tmp/vagrant-rsync-12345")).to be_falsey
end
end
end
end