Fix virtualbox shared folders path

This commit is contained in:
Chris Roberts 2016-12-08 13:23:17 -08:00
parent a3b9d231ad
commit 7f9a4b67d2
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ module VagrantPlugins
module Cap
class MountSharedFolder
def self.mount_virtualbox_shared_folder(machine, name, guestpath, options)
mount_shared_folder(machine, name, guestpath, "\\\\vboxsrv\\")
mount_shared_folder(machine, name, guestpath, "\\\\vboxsvr\\")
end
def self.mount_vmware_shared_folder(machine, name, guestpath, options)

View File

@ -24,7 +24,7 @@ describe "VagrantPlugins::GuestWindows::Cap::MountSharedFolder" do
/.+scripts\/mount_volume.ps1/, options: {
mount_point: "guestpath",
share_name: "name",
vm_provider_unc_path: "\\\\vboxsrv\\name",
vm_provider_unc_path: "\\\\vboxsvr\\name",
})
described_class.mount_virtualbox_shared_folder(machine, 'name', 'guestpath', {})
end
@ -34,7 +34,7 @@ describe "VagrantPlugins::GuestWindows::Cap::MountSharedFolder" do
kind_of(String), options: {
mount_point: kind_of(String),
share_name: "invalid-windows_sharename",
vm_provider_unc_path: "\\\\vboxsrv\\invalid-windows_sharename",
vm_provider_unc_path: "\\\\vboxsvr\\invalid-windows_sharename",
})
described_class.mount_virtualbox_shared_folder(machine, "/invalid-windows/sharename", "guestpath", {})
end