summaryrefslogtreecommitdiffstats
path: root/spec/unit/operatingsystem_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/operatingsystem_spec.rb')
-rwxr-xr-xspec/unit/operatingsystem_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/unit/operatingsystem_spec.rb b/spec/unit/operatingsystem_spec.rb
index 91cd311..9a7971d 100755
--- a/spec/unit/operatingsystem_spec.rb
+++ b/spec/unit/operatingsystem_spec.rb
@@ -34,6 +34,7 @@ describe "Operating System fact" do
it "should identify Oracle VM as OVS" do
Facter.fact(:kernel).stubs(:value).returns("Linux")
+ Facter.stubs(:value).with(:lsbdistid).returns(nil)
FileTest.stubs(:exists?).returns false
FileTest.expects(:exists?).with("/etc/ovs-release").returns true
@@ -44,6 +45,7 @@ describe "Operating System fact" do
it "should identify VMWare ESX" do
Facter.fact(:kernel).stubs(:value).returns("Linux")
+ Facter.stubs(:value).with(:lsbdistid).returns(nil)
FileTest.stubs(:exists?).returns false
FileTest.expects(:exists?).with("/etc/vmware-release").returns true