Update stdlib and concat to 6.1.0 both
[mirror/dsa-puppet.git] / 3rdparty / modules / concat / spec / acceptance / noop_spec.rb
1 require 'spec_helper_acceptance'
2
3 describe 'concat noop parameter', if: ['debian', 'redhat', 'ubuntu'].include?(os[:family]) do
4   before(:all) do
5     @basedir = setup_test_directory
6   end
7   describe 'with "/usr/bin/test -e %"' do
8     let(:pp) do
9       <<-MANIFEST
10       concat_file { '#{@basedir}/file':
11         noop => false,
12       }
13       concat_fragment { 'content':
14         target  => '#{@basedir}/file',
15         content => 'content',
16       }
17     MANIFEST
18     end
19
20     it 'applies the manifest twice with no stderr' do
21       idempotent_apply(pp)
22       expect(file("#{@basedir}/file")).to be_file
23       expect(file("#{@basedir}/file").content).to contain 'content'
24     end
25   end
26 end