1 require 'spec_helper_acceptance'
3 describe 'has_key function' do
6 $a = { 'aaa' => 'bbb','bbb' => 'ccc','ddd' => 'eee' }
11 notify { 'output correct': }
14 it 'has_keys in hashes' do
15 apply_manifest(pp1, :catch_failures => true) do |r|
16 expect(r.stdout).to match(%r{Notice: output correct})
21 $a = { 'aaa' => 'bbb','bbb' => 'ccc','ddd' => 'eee' }
26 notify { 'output correct': }
29 it 'has_keys not in hashes' do
30 apply_manifest(pp2, :catch_failures => true) do |r|
31 expect(r.stdout).to match(%r{Notice: output correct})
36 it 'handles improper argument counts'
37 it 'handles non-hashes'