summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorRein Henrichs <rein@puppetlabs.com>2010-08-06 12:14:27 -0700
committerRein Henrichs <rein@puppetlabs.com>2010-08-06 16:06:33 -0700
commite02be1d34fd374c1d345fb16da9e5d33fa2118fd (patch)
treef3e156fd8009e296ab25659425b9e3d93f292b5f /spec
parentbff84c2ac73db3880f7004a0defc745fa0b1d37c (diff)
downloadfacter-e02be1d34fd374c1d345fb16da9e5d33fa2118fd.tar.gz
facter-e02be1d34fd374c1d345fb16da9e5d33fa2118fd.tar.xz
facter-e02be1d34fd374c1d345fb16da9e5d33fa2118fd.zip
[#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 <rein@puppetlabs.com>
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/util/virtual.rb2
1 files changed, 1 insertions, 1 deletions
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