Update stdlib and concat to 6.1.0 both
[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   before(:all) do
5     @basedir = setup_test_directory
6   end
7
8   let(:pp) do
9     <<-MANIFEST
10       concat { 'not_abs_path':
11         path => '#{@basedir}/file',
12       }
13
14       concat::fragment { '1':
15         target  => 'not_abs_path',
16         content => '1',
17         order   => '01',
18       }
19
20       concat::fragment { '2':
21         target  => 'not_abs_path',
22         content => '2',
23         order   => '02',
24       }
25     MANIFEST
26   end
27
28   it 'applies the manifest twice with no stderr' do
29     idempotent_apply(pp)
30     expect(file("#{@basedir}/file")).to be_file
31     expect(file("#{@basedir}/file").content).to match '1'
32     expect(file("#{@basedir}/file").content).to match '2'
33   end
34 end