diff options
-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 |