Ensure nfsd call is mocked up in BSD NFS test

This commit is contained in:
Brian Cain 2019-10-25 09:02:30 -07:00
parent f6503462f6
commit ce033454ca
No known key found for this signature in database
GPG Key ID: 9FC4639B2E4510A0
1 changed files with 3 additions and 0 deletions

View File

@ -21,6 +21,9 @@ describe VagrantPlugins::HostBSD::Cap::NFS do
allow(described_class).to receive(:system)
allow(File).to receive(:writable?).with("/etc/exports")
allow(ui).to receive(:info)
allow(Vagrant::Util::Subprocess).to receive(:execute).with("nfsd", "checkexports").
and_return(Vagrant::Util::Subprocess::Result.new(0, "", ""))
end
it "should execute successfully when no folders are defined" do