diff options
author | Matt Wrock <matt@mattwrock.com> | 2016-02-29 16:35:04 -0800 |
---|---|---|
committer | Matt Wrock <matt@mattwrock.com> | 2016-02-29 16:35:04 -0800 |
commit | 55753254660c5a1a91eef45791989322dc186660 (patch) | |
tree | 0e2bd18d4d49a84f100e66b8f70dfbeabefa4199 /spec | |
parent | 2b15683c9e688403b1da2db03ee51b71a40be204 (diff) | |
parent | 89e333a27dd5cbecd205405046bafe13d6f05563 (diff) | |
download | chef-55753254660c5a1a91eef45791989322dc186660.tar.gz |
Merge pull request #4645 from chef/msi
fixes #4639 and returns true from define_resource_requirements for MSIs
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/provider/package/windows_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/unit/provider/package/windows_spec.rb b/spec/unit/provider/package/windows_spec.rb index 334b258a26..e26662ac75 100644 --- a/spec/unit/provider/package/windows_spec.rb +++ b/spec/unit/provider/package/windows_spec.rb @@ -296,6 +296,15 @@ describe Chef::Provider::Package::Windows, :windows_only do it "raises a NoWindowsPackageSource error" do expect { provider.run_action(:install) }.to raise_error(Chef::Exceptions::NoWindowsPackageSource) end + + context "msi installer_type" do + let(:installer_type) { :msi } + + it "does not raise a NoWindowsPackageSource error" do + expect(provider).to receive(:install_package) + provider.run_action(:install) + end + end end context "http source given and no type given explicitly" do |