summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-06-23 08:54:16 -0700
committerTim Smith <tsmith84@gmail.com>2020-06-23 08:54:16 -0700
commitbbf44eb7ac89c3876603ba02d06695639c96946b (patch)
treee67a930e5a1c5cbe96f09f1d5847e27db9e11ef2
parent91c7f3e736c91479b2be51069d27068bfe71ac8d (diff)
downloadchef-bbf44eb7ac89c3876603ba02d06695639c96946b.tar.gz
Fix spec that was missed in the rebase
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--spec/unit/provider/package/powershell_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/provider/package/powershell_spec.rb b/spec/unit/provider/package/powershell_spec.rb
index 4a716d7360..c25bf179cb 100644
--- a/spec/unit/provider/package/powershell_spec.rb
+++ b/spec/unit/provider/package/powershell_spec.rb
@@ -131,7 +131,7 @@ describe Chef::Provider::Package::Powershell do
end
it "should set the candidate_version to the latest version when not pinning and package name is space seperated" do
- allow(provider).to receive(:powershell_out).with("( Find-Package '7-Zip 16.02 (x64)' -Force -ForceBootstrap ).Version", { timeout: new_resource.timeout }).and_return(package_7zip_available)
+ allow(provider).to receive(:powershell_out).with("( Find-Package '7-Zip 16.02 (x64)' -Force -ForceBootstrap -WarningAction SilentlyContinue ).Version", { timeout: new_resource.timeout }).and_return(package_7zip_available)
new_resource.package_name(["7-Zip 16.02 (x64)"])
new_resource.version(nil)
expect(provider.candidate_version).to eql(["16.02"])