- context 'path with blanks' do
- pp = <<-EOS
- concat { '#{basedir}/concat test/foo':
- }
- concat::fragment { '1':
- target => '#{basedir}/concat test/foo',
- content => 'string1',
- }
- concat::fragment { '2':
- target => '#{basedir}/concat test/foo',
- content => 'string2',
- }
- EOS
-
- it 'applies the manifest twice with no stderr' do
- apply_manifest(pp, :catch_failures => true)
- apply_manifest(pp, :catch_changes => true)
+ describe 'with path with blanks' do
+ let(:pp) do
+ <<-MANIFEST
+ file { '#{@basedir}/concat test':
+ ensure => directory,
+ }
+ concat { '#{@basedir}/concat test/foo':
+ }
+ concat::fragment { '1':
+ target => '#{@basedir}/concat test/foo',
+ content => 'string1',
+ }
+ concat::fragment { '2':
+ target => '#{@basedir}/concat test/foo',
+ content => 'string2',
+ }
+ MANIFEST