From e827efc55c0925216ec3eab3e0e2828932b649d3 Mon Sep 17 00:00:00 2001 From: sersut Date: Thu, 17 Oct 2013 10:09:40 -0700 Subject: Fix the spec that stubs ::File::exists? --- spec/unit/provider/mount/mount_spec.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'spec/unit/provider/mount') 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 -- cgit v1.2.1