mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Allow a mock object to receive synced_folders in config validation spec.
When using qemu session, the config is checked if there are 9p synced folders. We do not care about synced folders when we want to check if the MAC address is defined correctly. The result is a failure from the mock object: `#<Double "vm"> received unexpected message :synced_folders with (no args)`
This commit is contained in:
@@ -773,6 +773,8 @@ describe VagrantPlugins::ProviderLibvirt::Config do
|
||||
before do
|
||||
machine.config.instance_variable_get("@keys")[:vm] = vm
|
||||
allow(vm).to receive(:box).and_return(box)
|
||||
|
||||
allow(vm).to receive(:synced_folders).and_return({})
|
||||
end
|
||||
|
||||
it 'is valid with valid mac' do
|
||||
|
||||
Reference in New Issue
Block a user