Mercurial > repos > other > Puppet
view modules/concat/spec/acceptance/quoted_paths_spec.rb @ 59:851f7fa888eb
Add more complex fragment for Forums to stop hotlinking
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 06 Sep 2015 09:50:39 +0000 |
parents | 956e484adc12 |
children | 37675581a273 |
line wrap: on
line source
require 'spec_helper_acceptance' describe 'quoted paths' do before(:all) do shell('rm -rf "/tmp/concat test" /var/lib/puppet/concat') shell('mkdir -p "/tmp/concat test"') end context 'path with blanks' do pp = <<-EOS concat { '/tmp/concat test/foo': } concat::fragment { '1': target => '/tmp/concat test/foo', content => 'string1', } concat::fragment { '2': target => '/tmp/concat test/foo', content => 'string2', } EOS it 'applies the manifest twice with no stderr' do expect(apply_manifest(pp, :catch_failures => true).stderr).to eq("") expect(apply_manifest(pp, :catch_changes => true).stderr).to eq("") end describe file('/tmp/concat test/foo') do it { should be_file } it { should contain "string1\nsring2" } end end end