diff options
author | mwrock <matt@mattwrock.com> | 2020-11-11 11:00:59 -0800 |
---|---|---|
committer | mwrock <matt@mattwrock.com> | 2020-11-11 11:00:59 -0800 |
commit | ad1f3bc53e37e98a9bf779a3200d0e469e6ce8da (patch) | |
tree | b62cc5e1cd926ee45e41116c7014717046282454 | |
parent | c8dfa0b4691d1e75d53117ea53ee6c6c2755f150 (diff) | |
download | chef-fix_ps_specs.tar.gz |
fix powershell package source functional specsfix_ps_specs
Signed-off-by: mwrock <matt@mattwrock.com>
-rw-r--r-- | spec/functional/resource/powershell_package_source_spec.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/functional/resource/powershell_package_source_spec.rb b/spec/functional/resource/powershell_package_source_spec.rb index fa95415788..d6bd1744d7 100644 --- a/spec/functional/resource/powershell_package_source_spec.rb +++ b/spec/functional/resource/powershell_package_source_spec.rb @@ -18,7 +18,7 @@ require "spec_helper" require "chef/mixin/powershell_exec" -describe Chef::Resource::PowershellPackageSource, :windows_only do +describe Chef::Resource::PowershellPackageSource, :windows_gte_10 do include Chef::Mixin::PowershellExec let(:source_name) { "fake" } @@ -83,6 +83,10 @@ describe Chef::Resource::PowershellPackageSource, :windows_only do context "with NuGet provider" do let(:provider_name) { "NuGet" } + before(:all) do + powershell_exec!("Install-PackageProvider -Name NuGet -Force") + end + it_behaves_like "package_source" end |