Sha256: 69fee4e3639b5b941d2a2fd49e2f9c35f343ca4b37f8fb3083fcfa93f91b133f
Contents?: true
Size: 860 Bytes
Versions: 30
Compression:
Stored size: 860 Bytes
Contents
require_relative "../../../../base" describe "VagrantPlugins::GuestSUSE::Cap::NFSClient" do let(:caps) do VagrantPlugins::GuestSUSE::Plugin .components .guest_capabilities[:suse] 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_install" do let(:cap) { caps.get(:nfs_client_install) } it "installs nfs client utilities" do cap.nfs_client_install(machine) expect(comm.received_commands[0]).to match(/zypper -n install nfs-client/) expect(comm.received_commands[0]).to match(/service rpcbind restart/) expect(comm.received_commands[0]).to match(/service nfs restart/) end end end
Version data entries
30 entries across 26 versions & 5 rubygems