summaryrefslogtreecommitdiff
path: root/spec/functional
diff options
context:
space:
mode:
authorMatt Wrock <matt@mattwrock.com>2016-01-20 09:43:15 -0800
committerMatt Wrock <matt@mattwrock.com>2016-01-20 09:43:15 -0800
commitfb3a2b4d04d997afdfb82c2a90a6278956943da3 (patch)
tree4cddbcb663d43be4fc9feaffba7ef9bed7a4d589 /spec/functional
parent2b5ee9f273538f50b9264cf2e430dee68f0da021 (diff)
downloadchef-fb3a2b4d04d997afdfb82c2a90a6278956943da3.tar.gz
die die die if functional test fails to install chocolateywhy_choco_no_install
Diffstat (limited to 'spec/functional')
-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