diff options
author | Bryan McLellan <btm@loftninjas.org> | 2017-10-16 21:42:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-16 21:42:38 -0400 |
commit | 2a7c69b0013731f3392c63de05dea6611ff2ee53 (patch) | |
tree | c88ba95d21b5b2e97a4e29dcd3d3bfc4df2dc43d /spec | |
parent | 87674bfceb5f818b96388aa786121546f1d67a39 (diff) | |
parent | f04a1c83c84bf5108e4346eff20c472de2f51334 (diff) | |
download | chef-2a7c69b0013731f3392c63de05dea6611ff2ee53.tar.gz |
Merge pull request #6437 from MsysTechnologiesllc/dh/array_choco_pkg_artifactory
[MSYS-647] array support for choco pkg from artifactory
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/provider/package/chocolatey_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/unit/provider/package/chocolatey_spec.rb b/spec/unit/provider/package/chocolatey_spec.rb index 68b121960c..afc068041d 100644 --- a/spec/unit/provider/package/chocolatey_spec.rb +++ b/spec/unit/provider/package/chocolatey_spec.rb @@ -59,7 +59,9 @@ Git|2.6.2 munin-node|1.6.1.20130823 EOF remote_list_obj = double(stdout: remote_list_stdout) - allow(provider).to receive(:shell_out!).with("#{choco_exe} list -r #{package_names.join ' '}#{args}", { :returns => [0], timeout: timeout }).and_return(remote_list_obj) + package_names.each do |pkg| + allow(provider).to receive(:shell_out!).with("#{choco_exe} list -r #{pkg}#{args}", { :returns => [0], timeout: timeout }).and_return(remote_list_obj) + end end describe "#initialize" do |