From 9cbf45be599436f4630bbc1403627d7b2980ae22 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Mon, 6 Jun 2016 10:45:40 -0400 Subject: [PATCH] guests/suse: Add tests for network_scripts_dir --- .../suse/cap/network_scripts_dir_test.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/unit/plugins/guests/suse/cap/network_scripts_dir_test.rb diff --git a/test/unit/plugins/guests/suse/cap/network_scripts_dir_test.rb b/test/unit/plugins/guests/suse/cap/network_scripts_dir_test.rb new file mode 100644 index 000000000..cea7b497a --- /dev/null +++ b/test/unit/plugins/guests/suse/cap/network_scripts_dir_test.rb @@ -0,0 +1,19 @@ +require_relative "../../../../base" + +describe "VagrantPlugins::GuestSUSE::Cap::NetworkScriptsDir" do + let(:caps) do + VagrantPlugins::GuestSUSE::Plugin + .components + .guest_capabilities[:suse] + end + + let(:machine) { double("machine") } + + describe ".network_scripts_dir" do + let(:cap) { caps.get(:network_scripts_dir) } + + it "runs /etc/sysconfig/network" do + expect(cap.network_scripts_dir(machine)).to eq("/etc/sysconfig/network") + end + end +end