diff options
author | Lamont Granquist <lamont@chef.io> | 2019-04-30 17:18:58 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-30 17:18:58 -0700 |
commit | 58bcea78cb99d5f0ec1abf6f4870a3c0b9b3a2db (patch) | |
tree | 5b5b59c97b0fcd5949e08d991dce05a990c1da36 /spec/support | |
parent | df1a3db1deff96233756f1b2f80f48ae477881d2 (diff) | |
parent | 9ea76290936316ce6fe2d40621581210b2006572 (diff) | |
download | chef-58bcea78cb99d5f0ec1abf6f4870a3c0b9b3a2db.tar.gz |
Merge pull request #8417 from jaymzh/link_message
file: Tell people what file a link is pointing at in warning messages
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/shared/unit/provider/file.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/support/shared/unit/provider/file.rb b/spec/support/shared/unit/provider/file.rb index a7c7af92f6..b3039f9be4 100644 --- a/spec/support/shared/unit/provider/file.rb +++ b/spec/support/shared/unit/provider/file.rb @@ -76,6 +76,7 @@ def setup_symlink allow(File).to receive(:directory?).with(path).and_return(false) allow(File).to receive(:writable?).with(path).and_return(true) allow(file_symlink_class).to receive(:symlink?).with(path).and_return(true) + allow(file_symlink_class).to receive(:realpath).with(path).and_return(path) end allow(File).to receive(:directory?).with(enclosing_directory).and_return(true) end |