Suggest different variables to use if we want to tunnel both v4 and v6
[mirror/dsa-puppet.git] / 3rdparty / modules / stdlib / spec / acceptance / union_spec.rb
1 require 'spec_helper_acceptance'
2
3 describe 'union function' do
4   describe 'success' do
5     pp = <<-DOC
6       $a = ["the","public"]
7       $b = ["art"]
8       $c = ["galleries"]
9       # Anagram: Large picture halls, I bet
10       $o = union($a,$b,$c)
11       notice(inline_template('union is <%= @o.inspect %>'))
12     DOC
13     it 'unions arrays' do
14       apply_manifest(pp, :catch_failures => true) do |r|
15         expect(r.stdout).to match(%r{union is \["the", "public", "art", "galleries"\]})
16       end
17     end
18   end
19   describe 'failure' do
20     it 'handles no arguments'
21     it 'handles non arrays'
22   end
23 end