diff options
author | James Turnbull <james@lovedthanlost.net> | 2011-03-15 18:39:04 +1100 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2011-03-15 18:39:04 +1100 |
commit | 8d71db38d458186fb5512f41eae55c0c947804ac (patch) | |
tree | 3338390ce5b79047a04f78253a3c2e8f74a0b27f /spec/unit/virtual_spec.rb | |
parent | 469d2a26a467c50af9f9732d7f98e8a01ecc369f (diff) | |
download | facter-8d71db38d458186fb5512f41eae55c0c947804ac.tar.gz facter-8d71db38d458186fb5512f41eae55c0c947804ac.tar.xz facter-8d71db38d458186fb5512f41eae55c0c947804ac.zip |
Fixed #6616 - Stubbing in VMware tests on Linux
Diffstat (limited to 'spec/unit/virtual_spec.rb')
-rw-r--r-- | spec/unit/virtual_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/unit/virtual_spec.rb b/spec/unit/virtual_spec.rb index 5f63dab..c1bc3cb 100644 --- a/spec/unit/virtual_spec.rb +++ b/spec/unit/virtual_spec.rb @@ -64,6 +64,10 @@ describe "Virtual fact" do describe "on Linux" do + before do + FileTest.expects(:exists?).with("/usr/lib/vmware/bin/vmware-vmx").returns false + end + it "should be parallels with Parallels vendor id from lspci" do Facter.fact(:kernel).stubs(:value).returns("Linux") Facter::Util::Resolution.stubs(:exec).with('lspci').returns("01:00.0 VGA compatible controller: Unknown device 1ab8:4005") |