Fix rsync test for updated rspec

This commit is contained in:
Chris Roberts 2017-08-21 14:08:59 -07:00
parent 75d0cc5e13
commit 927129aa39
1 changed files with 2 additions and 6 deletions

View File

@ -237,9 +237,7 @@ describe VagrantPlugins::SyncedFolderRSync::RsyncHelper do
before { ssh_info[:host] = "fe00::0" }
it "formats the address correctly" do
expect(Vagrant::Util::Subprocess).to receive(:execute).with { |*args|
expect(args[13]).to include("@[#{ssh_info[:host]}]")
}
expect(Vagrant::Util::Subprocess).to receive(:execute).with(any_args, "@[#{ssh_info[:host]}]:''", instance_of(Hash))
subject.rsync_single(machine, ssh_info, opts)
end
end
@ -248,9 +246,7 @@ describe VagrantPlugins::SyncedFolderRSync::RsyncHelper do
before { ssh_info[:host] = "127.0.0.1" }
it "formats the address correctly" do
expect(Vagrant::Util::Subprocess).to receive(:execute).with { |*args|
expect(args[13]).to include("@#{ssh_info[:host]}")
}
expect(Vagrant::Util::Subprocess).to receive(:execute).with(any_args, "@#{ssh_info[:host]}:''", instance_of(Hash))
subject.rsync_single(machine, ssh_info, opts)
end
end