empty_spec.rb 555 B

1234567891011121314151617181920212223
  1. require 'spec_helper_acceptance'
  2. describe 'concat force empty parameter' do
  3. basedir = default.tmpdir('concat')
  4. context 'should run successfully' do
  5. pp = <<-EOS
  6. concat { '#{basedir}/file':
  7. mode => '0644',
  8. force => true,
  9. }
  10. EOS
  11. it 'applies the manifest twice with no stderr' do
  12. apply_manifest(pp, :catch_failures => true)
  13. apply_manifest(pp, :catch_changes => true)
  14. end
  15. describe file("#{basedir}/file") do
  16. it { should be_file }
  17. it { should_not contain '1\n2' }
  18. end
  19. end
  20. end