prepare_nfs_settings: Add scoped hash override test.

This commit is contained in:
David O'Rourke 2016-06-03 15:19:03 +01:00
parent 9bec6c0a06
commit 514193090a
1 changed files with 9 additions and 0 deletions

View File

@ -125,5 +125,14 @@ describe VagrantPlugins::ProviderVirtualBox::Action::PrepareNFSSettings do
expect(env[:nfs_host_ip]).to eq("1.2.3.4")
expect(env[:nfs_machine_ip]).to eq(["11.12.13.14", "2.3.4.5"])
end
it "allows the use of scoped hash overrides as options" do
env[:machine].config.vm.network :private_network, virtualbox__ip: "11.12.13.14"
subject.call(env)
expect(env[:nfs_host_ip]).to eq("1.2.3.4")
expect(env[:nfs_machine_ip]).to eq(["11.12.13.14", "2.3.4.5"])
end
end
end