spec/unit/util/virtual_spec.rb in facter-1.7.4 vs spec/unit/util/virtual_spec.rb in facter-1.7.5.rc1
- old
+ new
@@ -89,10 +89,10 @@
Facter::Util::Virtual.should_not be_vserver
end
it "should identify kvm" do
Facter::Util::Virtual.stubs(:kvm?).returns(true)
- Facter::Util::Resolution.stubs(:exec).with('dmidecode').returns("something")
+ Facter::Util::Resolution.stubs(:exec).with('dmidecode 2> /dev/null').returns("something")
Facter::Util::Virtual.kvm_type().should == "kvm"
end
it "should be able to detect RHEV via sysfs on Linux" do
# Fake files are always hard to stub. :/