2014-01-17 17:53:02 +00:00
|
|
|
require_relative "../../../base"
|
|
|
|
|
|
|
|
require Vagrant.source_root.join("plugins/providers/virtualbox/config")
|
|
|
|
|
|
|
|
describe VagrantPlugins::ProviderVirtualBox::Config do
|
|
|
|
context "defaults" do
|
|
|
|
before { subject.finalize! }
|
|
|
|
|
2014-02-09 02:35:09 +00:00
|
|
|
its(:check_guest_additions) { should be_true }
|
|
|
|
its(:gui) { should be_false }
|
|
|
|
its(:name) { should be_nil }
|
|
|
|
|
2014-01-17 17:53:02 +00:00
|
|
|
it "should have one NAT adapter" do
|
|
|
|
expect(subject.network_adapters).to eql({
|
|
|
|
1 => [:nat, {}],
|
|
|
|
})
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
describe "#network_adapter" do
|
|
|
|
it "configures additional adapters" do
|
|
|
|
subject.network_adapter(2, :bridged, auto_config: true)
|
|
|
|
expect(subject.network_adapters[2]).to eql(
|
|
|
|
[:bridged, auto_config: true])
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|