From e02be1d34fd374c1d345fb16da9e5d33fa2118fd Mon Sep 17 00:00:00 2001 From: Rein Henrichs Date: Fri, 6 Aug 2010 12:14:27 -0700 Subject: [#4156] Updating spec to match Kai's change Updating the spec to check for the existence of /proc/vz to match the change in the previously applied patch. Signed-off-by: Rein Henrichs --- spec/unit/util/virtual.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec') diff --git a/spec/unit/util/virtual.rb b/spec/unit/util/virtual.rb index 5b59cf9..1e31a2f 100644 --- a/spec/unit/util/virtual.rb +++ b/spec/unit/util/virtual.rb @@ -8,7 +8,7 @@ describe Facter::Util::Virtual do Facter.clear end it "should detect openvz" do - FileTest.stubs(:exists?).with("/proc/vz/veinfo").returns(true) + FileTest.stubs(:directory?).with("/proc/vz").returns(true) Facter::Util::Virtual.should be_openvz end -- cgit