diff options
author | Pete Higgins <pete@peterhiggins.org> | 2020-09-10 16:08:44 -0700 |
---|---|---|
committer | Pete Higgins <pete@peterhiggins.org> | 2020-09-10 16:08:44 -0700 |
commit | 15437f1f045ded0296b1d954c25f644079b16fb0 (patch) | |
tree | fec62d00b84967fa393283ea20776b02cb564e57 | |
parent | 975236d9a3f29941fe33883f93efcb19f96546fc (diff) | |
download | ohai-15437f1f045ded0296b1d954c25f644079b16fb0.tar.gz |
Fix a local test failure.
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
-rw-r--r-- | spec/unit/plugins/shells_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/unit/plugins/shells_spec.rb b/spec/unit/plugins/shells_spec.rb index f70218e6..7002c6bc 100644 --- a/spec/unit/plugins/shells_spec.rb +++ b/spec/unit/plugins/shells_spec.rb @@ -42,6 +42,7 @@ describe Ohai::System, "plugin shells" do it "sets shells to an array of shells if /etc/shells exists" do allow(::File).to receive(:readlines).with("/etc/shells").and_return(shell_file_content) + allow(::File).to receive(:exist?).and_call_original allow(::File).to receive(:exist?).with("/etc/shells").and_return(true) plugin.run expect(plugin.shells).to match_array([ |