diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-08-10 13:25:03 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2018-08-10 13:25:03 -0700 |
commit | cdae8d9618063366fa641d3448a672a20521dea3 (patch) | |
tree | 269a24ae98b9de6c369c4a63dabe8b76f1547082 /spec | |
parent | 1b65b5a9b14ba53cc053b57b013d340c4dbf6ffb (diff) | |
download | chef-cdae8d9618063366fa641d3448a672a20521dea3.tar.gz |
fix the mount unit tests
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/provider/mount/mount_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/unit/provider/mount/mount_spec.rb b/spec/unit/provider/mount/mount_spec.rb index 2af3c93fc9..2353d992d0 100644 --- a/spec/unit/provider/mount/mount_spec.rb +++ b/spec/unit/provider/mount/mount_spec.rb @@ -43,6 +43,7 @@ describe Chef::Provider::Mount::Mount do describe "when discovering the current fs state" do before do allow(@provider).to receive(:shell_out_compacted!).and_return(OpenStruct.new(stdout: "")) + allow(::File).to receive(:exist?).with("/etc/fstab").and_return(true) allow(::File).to receive(:foreach).with("/etc/fstab") end |