1 require 'spec_helper_acceptance'
3 describe 'is_hash function' do
6 $a = ['aaa','bbb','ccc']
8 notice(inline_template('is_hash is <%= @o.inspect %>'))
10 it 'is_hashs arrays' do
11 apply_manifest(pp1, :catch_failures => true) do |r|
12 expect(r.stdout).to match(%r{is_hash is false})
21 notify { 'output correct': }
24 it 'is_hashs empty hashs' do
25 apply_manifest(pp2, :catch_failures => true) do |r|
26 expect(r.stdout).to match(%r{Notice: output correct})
35 notify { 'output correct': }
38 it 'is_hashs strings' do
39 apply_manifest(pp3, :catch_failures => true) do |r|
40 expect(r.stdout).to match(%r{Notice: output correct})
49 notify { 'output correct': }
52 it 'is_hashs hashes' do
53 apply_manifest(pp4, :catch_failures => true) do |r|
54 expect(r.stdout).to match(%r{Notice: output correct})
59 it 'handles improper argument counts'