Sha256: a0a0e4e17a3d4f275c6f1fdb1f8705332e21995848985761c939d08eeada6c44
Contents?: true
Size: 675 Bytes
Versions: 1
Compression:
Stored size: 675 Bytes
Contents
require 'vagrant-guests-openbsd/cap/mount_nfs_folder' require 'spec_helper' describe VagrantPlugins::GuestOpenBSD::Cap::MountNFSFolder 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-openbsd-0.0.3 | spec/cap/mount_nfs_folder.rb |