vagrant/test/unit/plugins/guests/linux/cap/nfs_client_test.rb

30 lines
693 B
Ruby
Raw Normal View History

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