]> git.donarmstrong.com Git - dsa-puppet.git/blob - 3rdparty/modules/concat/spec/acceptance/empty_spec.rb
try if downgrading to 1.2.2 solves my problem
[dsa-puppet.git] / 3rdparty / modules / concat / spec / acceptance / empty_spec.rb
1 require 'spec_helper_acceptance'
2
3 describe 'concat force empty parameter' do
4   basedir = default.tmpdir('concat')
5   context 'should run successfully' do
6     pp = <<-EOS
7       concat { '#{basedir}/file':
8         mode  => '0644',
9         force => true,
10       }
11     EOS
12
13     it 'applies the manifest twice with no stderr' do
14       apply_manifest(pp, :catch_failures => true)
15       apply_manifest(pp, :catch_changes => true)
16     end
17
18     describe file("#{basedir}/file") do
19       it { should be_file }
20       its(:content) { should_not match /1\n2/ }
21     end
22   end
23 end