1 require 'spec_helper_acceptance'
3 describe 'delete_values function' do
6 $a = { 'a' => 'A', 'b' => 'B', 'B' => 'C', 'd' => 'B' }
7 $b = { 'a' => 'A', 'B' => 'C' }
8 $o = delete_values($a, 'B')
10 notify { 'output correct': }
13 it 'deletes elements of the hash' do
14 apply_manifest(pp, :catch_failures => true) do |r|
15 expect(r.stdout).to match(%r{Notice: output correct})
20 it 'handles non-hash arguments'
21 it 'handles improper argument counts'