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