30 lines
693 B
Ruby
30 lines
693 B
Ruby
|
require_relative "../../../../base"
|
||
|
|
||
|
describe "VagrantPlugins::GuestLinux::Cap::NFSClient" do
|
||
|
let(:caps) do
|
||
|
VagrantPlugins::GuestLinux::Plugin
|
||
|
.components
|
||
|
.guest_capabilities[:linux]
|
||
|
end
|
||
|
|
||
|
let(:machine) { double("machine") }
|
||
|
let(:comm) { VagrantTests::DummyCommunicator::Communicator.new(machine) }
|
||
|
|
||
|
before do
|
||
|
allow(machine).to receive(:communicate).and_return(comm)
|
||
|
end
|
||
|
|
||
|
after do
|
||
|
comm.verify_expectations!
|
||
|
end
|
||
|
|
||
|
describe ".nfs_client_installed" do
|
||
|
let(:cap) { caps.get(:nfs_client_installed) }
|
||
|
|
||
|
it "installs nfs client utilities" do
|
||
|
comm.expect_command("test -x /sbin/mount.nfs")
|
||
|
cap.nfs_client_installed(machine)
|
||
|
end
|
||
|
end
|
||
|
end
|