Suggest different variables to use if we want to tunnel both v4 and v6
[mirror/dsa-puppet.git] / 3rdparty / modules / concat / spec / acceptance / concurrency_spec.rb
1 require 'spec_helper_acceptance'
2
3 describe 'with file recursive purge' do
4   basedir = default.tmpdir('concat')
5   context 'should still create concat file' do
6     pp = <<-EOS
7       file { '#{basedir}/bar':
8         ensure => directory,
9         purge  => true,
10         recurse => true,
11       }
12
13       concat { "foobar":
14         ensure => 'present',
15         path   => '#{basedir}/bar/foobar',
16       }
17
18       concat::fragment { 'foo':
19         target => 'foobar',
20         content => 'foo',
21       }
22     EOS
23
24     it 'applies the manifest twice with no stderr' do
25       apply_manifest(pp, :catch_failures => true)
26       apply_manifest(pp, :catch_changes => true)
27     end
28
29     describe file("#{basedir}/bar/foobar") do
30       it { should be_file }
31       its(:content) {
32         should match 'foo'
33       }
34     end
35   end
36 end
37