1 require 'spec_helper_acceptance'
3 describe 'is_bool function' do
6 $a = ['aaa','bbb','ccc']
10 notify { 'output correct': }
13 it 'is_bools 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': }
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_bools false' 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_bools strings' do
56 apply_manifest(pp4, :catch_failures => true) do |r|
57 expect(r.stdout).to match(%r{Notice: output correct})
66 notify { 'output correct': }
69 it 'is_bools hashes' do
70 apply_manifest(pp5, :catch_failures => true) do |r|
71 expect(r.stdout).to match(%r{Notice: output correct})
76 it 'handles improper argument counts'
77 it 'handles non-arrays'