Suggest different variables to use if we want to tunnel both v4 and v6
[mirror/dsa-puppet.git] / 3rdparty / modules / concat / spec / acceptance / symbolic_name_spec.rb
1 require 'spec_helper_acceptance'
2
3 describe 'symbolic name' do
4   basedir = default.tmpdir('concat')
5   pp = <<-EOS
6     concat { 'not_abs_path':
7       path => '#{basedir}/file',
8     }
9
10     concat::fragment { '1':
11       target  => 'not_abs_path',
12       content => '1',
13       order   => '01',
14     }
15
16     concat::fragment { '2':
17       target  => 'not_abs_path',
18       content => '2',
19       order   => '02',
20     }
21   EOS
22
23   it 'applies the manifest twice with no stderr' do
24     apply_manifest(pp, :catch_failures => true)
25     apply_manifest(pp, :catch_changes => true)
26   end
27
28   describe file("#{basedir}/file") do
29     it { should be_file }
30     its(:content) {
31       should match '1'
32       should match '2'
33     }
34   end
35 end