1 require 'spec_helper_acceptance'
3 describe 'delete function' do
5 $output = delete(['a','b','c','b'], 'b')
6 if $output == ['a','c'] {
7 notify { 'output correct': }
11 it 'deletes elements of the array' do
12 apply_manifest(pp, :catch_failures => true) do |r|
13 expect(r.stdout).to match(%r{Notice: output correct})