Merge pull request #11155 from briancain/fixup/mockup-nfsd-call-bsd-nfs

Ensure nfsd call is mocked up in BSD NFS test
This commit is contained in:
Brian Cain 2019-10-25 09:22:51 -07:00 committed by GitHub
commit 4735699bc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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