1 require 'spec_helper_acceptance'
3 describe 'is_array function' do
6 $a = ['aaa','bbb','ccc']
10 notify { 'output correct': }
13 it 'is_arrays arrays' do
14 apply_manifest(pp1, :catch_failures => true) do |r|
15 expect(r.stdout).to match(%r{Notice: output correct})
24 notify { 'output correct': }
27 it 'is_arrays empty arrays' do
28 apply_manifest(pp2, :catch_failures => true) do |r|
29 expect(r.stdout).to match(%r{Notice: output correct})
38 notify { 'output correct': }
41 it 'is_arrays strings' do
42 apply_manifest(pp3, :catch_failures => true) do |r|
43 expect(r.stdout).to match(%r{Notice: output correct})
52 notify { 'output correct': }
55 it 'is_arrays hashes' do
56 apply_manifest(pp4, :catch_failures => true) do |r|
57 expect(r.stdout).to match(%r{Notice: output correct})
62 it 'handles improper argument counts'
63 it 'handles non-arrays'