summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2021-05-10 14:59:01 -0700
committerTim Smith <tsmith@chef.io>2021-05-10 14:59:01 -0700
commit4e8c54ca77d94c677f7a1d70c5f9b941748e590b (patch)
tree13757be551779865a4adbc33eb13338da9b2b74c
parent9b2aefbea69540fd7e3999390b4a3dbada337e87 (diff)
downloadchef-fix_mount_spec.tar.gz
Fix failing mount specfix_mount_spec
Make sure we call the original here Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--spec/unit/provider/mount/linux_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/unit/provider/mount/linux_spec.rb b/spec/unit/provider/mount/linux_spec.rb
index 3e1ce1ace1..037ecee9ec 100644
--- a/spec/unit/provider/mount/linux_spec.rb
+++ b/spec/unit/provider/mount/linux_spec.rb
@@ -25,6 +25,7 @@ describe Chef::Provider::Mount::Linux do
allow(::File).to receive(:exists?).with("/dev/sdz1").and_return true
allow(::File).to receive(:exists?).with("/tmp/foo").and_return true
allow(::File).to receive(:exists?).with("//192.168.11.102/Share/backup").and_return true
+ allow(File).to receive(:realpath).and_call_original
allow(::File).to receive(:realpath).with("/dev/sdz1").and_return "/dev/sdz1"
allow(::File).to receive(:realpath).with("/tmp/foo").and_return "/tmp/foo"
end