Sha256: f0dc75912ece644abd7589ab0cecc5b76ce0c5440cfe264f10342798279e466c
Contents?: true
Size: 1.09 KB
Versions: 16
Compression:
Stored size: 1.09 KB
Contents
require 'spec_helper' require 'mocha/api' require 'vagrant-windows/guest/cap/mount_shared_folder' describe VagrantWindows::Guest::Cap::MountSharedFolder, :unit => true do before(:each) do @communicator = mock() @machine = stub(:communicate => @communicator) end describe "mount_virtualbox_shared_folder" do it "should run script with vbox paths" do @communicator.expects(:execute).with do |script, options| expect(script).to include("$VmProviderUncPath = \"\\\\vboxsrv\\vagrant\"") end VagrantWindows::Guest::Cap::MountSharedFolder.mount_virtualbox_shared_folder( @machine, "vagrant", "/tmp/vagrant", {}) end end describe "mount_vmware_shared_folder" do it "should run script with vmware paths" do @communicator.expects(:execute).with do |script, options| expect(script).to include("$VmProviderUncPath = \"\\\\vmware-host\\Shared Folders\\vagrant\"") end VagrantWindows::Guest::Cap::MountSharedFolder.mount_vmware_shared_folder( @machine, "vagrant", "/tmp/vagrant", {}) end end end
Version data entries
16 entries across 16 versions & 1 rubygems