Sha256: 0a78b750bd2e6be9a413085e72261f01d3edabaefb9696276cbe367698ad90ed
Contents?: true
Size: 692 Bytes
Versions: 1
Compression:
Stored size: 692 Bytes
Contents
require 'vagrant-guests-solaris11/cap/mount_nfs_folder' require 'spec_helper' describe VagrantPlugins::GuestSolaris11::Cap::MountVirtualBoxSharedFolder do include_context 'machine' it "should mount nfs folders" do ip = "192.168.1.1" folders = { 'folder1' => {:guestpath => '/guest1', :hostpath => '/host1'}, 'folder2' => {:guestpath => '/guest2', :hostpath => '/host2'} } folders.each do |name, opts| communicate.should_receive(:sudo).with("mkdir -p #{opts[:guestpath]}") communicate.should_receive(:sudo).with("mount '#{ip}:#{opts[:hostpath]}' '#{opts[:guestpath]}'") end described_class.mount_nfs_folder(machine, ip, folders) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vagrant-guests-solaris11-0.0.1.dev | spec/cap/mount_virtualbox_shared_folder_spec.rb |