1 #! /usr/bin/env ruby -S rspec
2 require 'spec_helper_acceptance'
4 describe 'delete_values function' do
6 it 'should delete elements of the hash' do
8 $a = { 'a' => 'A', 'b' => 'B', 'B' => 'C', 'd' => 'B' }
9 $b = { 'a' => 'A', 'B' => 'C' }
10 $o = delete_values($a, 'B')
12 notify { 'output correct': }
16 apply_manifest(pp, :catch_failures => true) do |r|
17 expect(r.stdout).to match(/Notice: output correct/)
22 it 'handles non-hash arguments'
23 it 'handles improper argument counts'