module-concat/spec/acceptance/symbolic_name_spec.rb

34 lines
702 B
Ruby
Raw Normal View History

require 'spec_helper_acceptance'
describe 'symbolic name' do
basedir = default.tmpdir('concat')
2013-11-14 04:28:27 +01:00
pp = <<-EOS
concat { 'not_abs_path':
path => '#{basedir}/file',
}
concat::fragment { '1':
target => 'not_abs_path',
content => '1',
order => '01',
}
concat::fragment { '2':
target => 'not_abs_path',
content => '2',
order => '02',
}
2013-11-14 04:28:27 +01:00
EOS
it 'applies the manifest twice with no stderr' do
2014-09-08 21:01:30 +02:00
apply_manifest(pp, :catch_failures => true)
apply_manifest(pp, :catch_changes => true)
end
describe file("#{basedir}/file") do
it { should be_file }
it { should contain '1' }
it { should contain '2' }
end
end