1 require 'spec_helper_acceptance'
4 basedir = default.tmpdir('concat')
6 shared_examples 'has_warning' do |pp, w|
7 it 'applies the manifest twice with a stderr regex' do
8 expect(apply_manifest(pp, :catch_failures => true).stderr).to match(/#{Regexp.escape(w)}/m)
9 expect(apply_manifest(pp, :catch_changes => true).stderr).to match(/#{Regexp.escape(w)}/m)
13 context 'concat::fragment target not found' do
14 context 'target not found' do
17 path => '#{basedir}/file',
19 concat::fragment { 'foo':
20 target => '#{basedir}/bar',
24 w = 'not found in the catalog'
26 it_behaves_like 'has_warning', pp, w