symbolic_name_spec.rb 714 B

1234567891011121314151617181920212223242526272829303132333435
  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. its(:content) {
  26. should match '1'
  27. should match '2'
  28. }
  29. end
  30. end