summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorCorey Hemminger <hemminger@hotmail.com>2022-07-26 14:16:10 -0500
committerGitHub <noreply@github.com>2022-07-26 14:16:10 -0500
commita3c95f022f1c4c9b44d575464bf77b168a5a0a65 (patch)
tree9924d62d18015627df0a54d04944b9a58f2748c7 /spec
parentce8e6412c44228758b66432f0f11f3c4deee183a (diff)
parentafc800c2a9caa210508bfde90e706a00f6c68e94 (diff)
downloadchef-a3c95f022f1c4c9b44d575464bf77b168a5a0a65.tar.gz
Merge branch 'chef:main' into patch-1
Diffstat (limited to 'spec')
-rw-r--r--spec/support/shared/functional/windows_script.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/shared/functional/windows_script.rb b/spec/support/shared/functional/windows_script.rb
index 151ad2387c..1db85e35f5 100644
--- a/spec/support/shared/functional/windows_script.rb
+++ b/spec/support/shared/functional/windows_script.rb
@@ -163,7 +163,7 @@ shared_context Chef::Resource::WindowsScript do
describe "when the run action is invoked on Windows" do
it "executes the script code" do
- resource.code("whoami > \"#{script_output_path}\"")
+ resource.code("chcp > \"#{script_output_path}\"")
resource.returns(0)
resource.run_action(:run)
end
@@ -199,7 +199,7 @@ shared_context Chef::Resource::WindowsScript do
end
it "executes the script code" do
- resource.code("whoami > \"#{script_output_path}\"")
+ resource.code("chcp > \"#{script_output_path}\"")
resource.returns(0)
resource.run_action(:run)
end