From 45ca16ffd53bcd467f00f27254b04bb2b3921dbf Mon Sep 17 00:00:00 2001 From: Brian Cain Date: Fri, 22 Feb 2019 12:38:23 -0800 Subject: [PATCH] Add rsync helper test for linux machines --- test/unit/plugins/synced_folders/rsync/helper_test.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/test/unit/plugins/synced_folders/rsync/helper_test.rb b/test/unit/plugins/synced_folders/rsync/helper_test.rb index 63ce97c21..9300b9458 100644 --- a/test/unit/plugins/synced_folders/rsync/helper_test.rb +++ b/test/unit/plugins/synced_folders/rsync/helper_test.rb @@ -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