diff options
author | sersut <serdar@opscode.com> | 2013-10-17 10:09:40 -0700 |
---|---|---|
committer | sersut <serdar@opscode.com> | 2013-10-17 10:09:40 -0700 |
commit | e827efc55c0925216ec3eab3e0e2828932b649d3 (patch) | |
tree | bf410831c64ee72b4ce054862e7453bdb78370d1 /spec | |
parent | 7a53ba7e293756db830b3a4ec24253e6a1818bef (diff) | |
download | chef-e827efc55c0925216ec3eab3e0e2828932b649d3.tar.gz |
Fix the spec that stubs ::File::exists?
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/provider/mount/mount_spec.rb | 2 |
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 |