Suggest different variables to use if we want to tunnel both v4 and v6
[mirror/dsa-puppet.git] / 3rdparty / modules / stdlib / spec / acceptance / difference_spec.rb
1 require 'spec_helper_acceptance'
2
3 describe 'difference function' do
4   describe 'success' do
5     pp = <<-DOC
6       $a = ['a','b','c']
7       $b = ['b','c','d']
8       $c = ['a']
9       $o = difference($a, $b)
10       if $o == $c {
11         notify { 'output correct': }
12       }
13     DOC
14     it 'returns non-duplicates in the first array' do
15       apply_manifest(pp, :catch_failures => true) do |r|
16         expect(r.stdout).to match(%r{Notice: output correct})
17       end
18     end
19   end
20   describe 'failure' do
21     it 'handles non-array arguments'
22     it 'handles improper argument counts'
23   end
24 end