summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-02-25 15:36:41 -0800
committerTim Smith <tsmith84@gmail.com>2020-02-25 15:41:58 -0800
commit319e7e3850ec62ef27ab358b0a7d50223408033e (patch)
tree3d21b48e3bddc5cf7120649c3775003b7eeb575b
parent5120ee586e47339b9e3cb8b822c193f8425b53a5 (diff)
downloadchef-platform_helpers.tar.gz
Fix a spec to work with windows?platform_helpers
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--spec/unit/resource/execute_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/resource/execute_spec.rb b/spec/unit/resource/execute_spec.rb
index 9bd434b74a..868916a0f1 100644
--- a/spec/unit/resource/execute_spec.rb
+++ b/spec/unit/resource/execute_spec.rb
@@ -109,7 +109,7 @@ describe Chef::Resource::Execute do
shared_examples_for "a consumer of the Execute resource" do
context "when running on Windows" do
before do
- allow(resource).to receive(:node).and_return({ platform_family: "windows" })
+ allow(resource).to receive(:windows?).and_return(true)
end
context "when no user, domain, or password is specified" do