From fb3a2b4d04d997afdfb82c2a90a6278956943da3 Mon Sep 17 00:00:00 2001 From: Matt Wrock Date: Wed, 20 Jan 2016 09:43:15 -0800 Subject: die die die if functional test fails to install chocolatey --- spec/functional/resource/chocolatey_package_spec.rb | 4 ++-- 1 file 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 -- cgit v1.2.1