1 require 'spec_helper_acceptance'
3 describe 'concat ensure_newline parameter' do
4 basedir = default.tmpdir('concat')
16 concat { '#{basedir}/file':
17 ensure_newline => false,
19 concat::fragment { '1':
20 target => '#{basedir}/file',
23 concat::fragment { '2':
24 target => '#{basedir}/file',
29 it 'applies the manifest twice with no stderr' do
30 apply_manifest(pp, :catch_failures => true)
31 apply_manifest(pp, :catch_changes => true)
34 describe file("#{basedir}/file") do
36 its(:content) { should match '12' }
42 concat { '#{basedir}/file':
43 ensure_newline => true,
45 concat::fragment { '1':
46 target => '#{basedir}/file',
49 concat::fragment { '2':
50 target => '#{basedir}/file',
55 it 'applies the manifest twice with no stderr' do
56 apply_manifest(pp, :catch_failures => true)
57 apply_manifest(pp, :catch_changes => true)
60 describe file("#{basedir}/file") do