summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-02-25 15:36:41 -0800
committerTim Smith <tsmith84@gmail.com>2020-03-16 12:41:12 -0700
commitccc6ee5b8513a377b7891000629815edd080b9c8 (patch)
treea26c64625941983484ca57f4cbcf1c8786315715
parent23a8f0ee1fab2f31c41a80315961dbcfb27c128a (diff)
downloadchef-ccc6ee5b8513a377b7891000629815edd080b9c8.tar.gz
Fix a spec to work with windows?
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