guests/pld: Add tests for network scripts dir

This commit is contained in:
Seth Vargo 2016-06-05 17:09:43 -04:00
parent cf989d1534
commit 8c28361f16
No known key found for this signature in database
GPG Key ID: 905A90C2949E8787
1 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,21 @@
require_relative "../../../../base"
describe "VagrantPlugins::GuestPld::Cap::NetworkScriptsDir" do
let(:caps) do
VagrantPlugins::GuestPld::Plugin
.components
.guest_capabilities[:pld]
end
let(:machine) { double("machine") }
describe ".network_scripts_dir" do
let(:cap) { caps.get(:network_scripts_dir) }
let(:name) { "banana-rama.example.com" }
it "is /etc/sysconfig/interfaces" do
expect(cap.network_scripts_dir(machine)).to eq("/etc/sysconfig/interfaces")
end
end
end