Update stdlib and concat to 6.1.0 both
[mirror/dsa-puppet.git] / 3rdparty / modules / concat / spec / acceptance / warnings_spec.rb
1 require 'spec_helper_acceptance'
2
3 describe 'warnings' do
4   before(:all) do
5     @basedir = setup_test_directory
6   end
7
8   context 'when concat::fragment target not found' do
9     let(:pp) do
10       <<-MANIFEST
11       concat { 'file':
12         path => '#{@basedir}/file',
13       }
14       concat::fragment { 'foo':
15         target  => '#{@basedir}/bar',
16         content => 'bar',
17       }
18     MANIFEST
19     end
20
21     it 'applies manifests, check stderr' do
22       expect(apply_manifest(pp, expect_failures: true).stderr).to match 'not found in the catalog'
23       expect(apply_manifest(pp, expect_failures: true).stderr).to match 'not found in the catalog'
24     end
25   end
26 end