symbolic_name_spec.rb 702 B

123456789101112131415161718192021222324252627282930313233
  1. require 'spec_helper_acceptance'
  2. describe 'symbolic name' do
  3. basedir = default.tmpdir('concat')
  4. pp = <<-EOS
  5. concat { 'not_abs_path':
  6. path => '#{basedir}/file',
  7. }
  8. concat::fragment { '1':
  9. target => 'not_abs_path',
  10. content => '1',
  11. order => '01',
  12. }
  13. concat::fragment { '2':
  14. target => 'not_abs_path',
  15. content => '2',
  16. order => '02',
  17. }
  18. EOS
  19. it 'applies the manifest twice with no stderr' do
  20. apply_manifest(pp, :catch_failures => true)
  21. apply_manifest(pp, :catch_changes => true)
  22. end
  23. describe file("#{basedir}/file") do
  24. it { should be_file }
  25. it { should contain '1' }
  26. it { should contain '2' }
  27. end
  28. end