1 require 'spec_helper_acceptance'
3 describe 'delete_at function' do
6 $output = delete_at(['a','b','c','b'], 1)
7 if $output == ['a','c','b'] {
8 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})