summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy HAGE <jha@jsh-consulting.com>2019-10-08 13:30:28 +0200
committerJeremy HAGE <jha@jsh-consulting.com>2019-10-08 13:30:28 +0200
commit28820c11864559c06804d1a4a94a63fd8fba7c88 (patch)
tree37f8dffb5717b9159b77a61cc465489063364f8d
parent851bc0cf4def93cb3506a24d655d4a189cf930a8 (diff)
downloadchef-28820c11864559c06804d1a4a94a63fd8fba7c88.tar.gz
Avoid a PATH environment variable update before a windows package install
Signed-off-by: Jeremy HAGE <jha@jsh-consulting.com>
-rw-r--r--spec/unit/provider/package/windows/exe_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/provider/package/windows/exe_spec.rb b/spec/unit/provider/package/windows/exe_spec.rb
index 6fa1747b03..6e39ddc78a 100644
--- a/spec/unit/provider/package/windows/exe_spec.rb
+++ b/spec/unit/provider/package/windows/exe_spec.rb
@@ -126,7 +126,7 @@ describe Chef::Provider::Package::Windows::Exe do
it "removes installed package and quotes uninstall string" do
new_resource.timeout = 300
allow(::File).to receive(:exist?).with("uninst_dir/uninst_file").and_return(true)
- expect(provider).to receive(:shell_out!).with(%r{start \"\" /wait \"uninst_dir/uninst_file\" /S /NCRC & exit %%%%ERRORLEVEL%%%%}, timeout: 300, returns: [0])
+ expect(provider).to receive(:shell_out!).with(%r{start \"\" /wait \"uninst_dir/uninst_file\" /S /NCRC & exit %%%%ERRORLEVEL%%%%}, default_env: false, timeout: 300, returns: [0])
provider.remove_package
end
end