summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Wrock <matt@mattwrock.com>2016-01-20 12:20:30 -0800
committerMatt Wrock <matt@mattwrock.com>2016-01-20 12:20:30 -0800
commita6d897235eecca34629e9d7330c2ba5e7a8ab3fe (patch)
tree4cddbcb663d43be4fc9feaffba7ef9bed7a4d589
parent2b5ee9f273538f50b9264cf2e430dee68f0da021 (diff)
parentfb3a2b4d04d997afdfb82c2a90a6278956943da3 (diff)
downloadchef-a6d897235eecca34629e9d7330c2ba5e7a8ab3fe.tar.gz
Merge pull request #4438 from chef/why_choco_no_install
die die die if functional test fails to install chocolatey
-rw-r--r--spec/functional/resource/chocolatey_package_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/functional/resource/chocolatey_package_spec.rb b/spec/functional/resource/chocolatey_package_spec.rb
index 201ab3238c..39baa7ffce 100644
--- a/spec/functional/resource/chocolatey_package_spec.rb
+++ b/spec/functional/resource/chocolatey_package_spec.rb
@@ -22,11 +22,11 @@ describe Chef::Resource::ChocolateyPackage, :windows_only do
include Chef::Mixin::PowershellOut
before(:all) do
- powershell_out("iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))")
+ powershell_out!("iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))")
end
let(:package_name) { "test-A" }
- let(:package_list) { proc { powershell_out("choco list -lo -r #{Array(package_name).join(' ')}").stdout.chomp } }
+ let(:package_list) { proc { powershell_out!("choco list -lo -r #{Array(package_name).join(' ')}").stdout.chomp } }
let(:package_source) { File.join(CHEF_SPEC_ASSETS, "chocolatey_feed") }
subject do