summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsersut <serdar@opscode.com>2013-10-17 10:09:40 -0700
committersersut <serdar@opscode.com>2013-10-17 10:09:40 -0700
commite827efc55c0925216ec3eab3e0e2828932b649d3 (patch)
treebf410831c64ee72b4ce054862e7453bdb78370d1
parent7a53ba7e293756db830b3a4ec24253e6a1818bef (diff)
downloadchef-e827efc55c0925216ec3eab3e0e2828932b649d3.tar.gz
Fix the spec that stubs ::File::exists?
-rw-r--r--spec/unit/provider/mount/mount_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/unit/provider/mount/mount_spec.rb b/spec/unit/provider/mount/mount_spec.rb
index 00cc9a10e2..cf0e8791de 100644
--- a/spec/unit/provider/mount/mount_spec.rb
+++ b/spec/unit/provider/mount/mount_spec.rb
@@ -36,6 +36,8 @@ describe Chef::Provider::Mount::Mount do
::File.stub!(:exists?).with("/dev/sdz1").and_return true
::File.stub!(:exists?).with("/tmp/foo").and_return true
+ ::File.stub!(:realpath).with("/dev/sdz1").and_return "/dev/sdz1"
+ ::File.stub!(:realpath).with("/tmp/foo").and_return "/tmp/foo"
end
describe "when discovering the current fs state" do