Suggest different variables to use if we want to tunnel both v4 and v6
[mirror/dsa-puppet.git] / 3rdparty / modules / stdlib / spec / acceptance / delete_spec.rb
1 require 'spec_helper_acceptance'
2
3 describe 'delete function' do
4   pp = <<-DOC
5       $output = delete(['a','b','c','b'], 'b')
6       if $output == ['a','c'] {
7         notify { 'output correct': }
8       }
9   DOC
10   describe 'success' do
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})
14       end
15     end
16   end
17 end