diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2014-12-12 13:30:03 -0800 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2014-12-14 19:53:42 -0800 |
commit | 4d80a325cb88da197d09b9af2ae2a1bb8ca99e9b (patch) | |
tree | 84f35b509f171e714c4db49cd3dcae0fad0ac347 | |
parent | 98ffba31bb92a71b51681d3fabf03f5c098c79d5 (diff) | |
download | chef-4d80a325cb88da197d09b9af2ae2a1bb8ca99e9b.tar.gz |
Windows msi package privoder unit tests run on all on all systems
-rw-r--r-- | spec/unit/provider/package/windows/msi_spec.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/unit/provider/package/windows/msi_spec.rb b/spec/unit/provider/package/windows/msi_spec.rb index e539bbbb79..44a652233d 100644 --- a/spec/unit/provider/package/windows/msi_spec.rb +++ b/spec/unit/provider/package/windows/msi_spec.rb @@ -18,13 +18,18 @@ require 'spec_helper' -describe Chef::Provider::Package::Windows::MSI, :windows_only do +describe Chef::Provider::Package::Windows::MSI do let(:node) { double('Chef::Node') } let(:events) { double('Chef::Events').as_null_object } # mock all the methods let(:run_context) { double('Chef::RunContext', :node => node, :events => events) } let(:new_resource) { Chef::Resource::WindowsPackage.new("calculator.msi") } let(:provider) { Chef::Provider::Package::Windows::MSI.new(new_resource) } + before(:each) do + stub_const("File::ALT_SEPARATOR", "\\") + allow(::File).to receive(:absolute_path).with("calculator.msi").and_return("calculator.msi") + end + describe "expand_options" do it "returns an empty string if passed no options" do expect(provider.expand_options(nil)).to eql "" |