diff --git a/test/unit/plugins/hosts/bsd/cap/nfs_test.rb b/test/unit/plugins/hosts/bsd/cap/nfs_test.rb index 51c125484..d3745c6e6 100644 --- a/test/unit/plugins/hosts/bsd/cap/nfs_test.rb +++ b/test/unit/plugins/hosts/bsd/cap/nfs_test.rb @@ -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