Sha256: 908832b2fc2149a9f9f3de4dddcc37191eafcd6835165aabc4326802260b170b

Contents?: true

Size: 714 Bytes

Versions: 6

Compression:

Stored size: 714 Bytes

Contents

require 'spec_helper_acceptance'

describe 'symbolic name' do
  basedir = default.tmpdir('concat')
  pp = <<-EOS
    concat { 'not_abs_path':
      path => '#{basedir}/file',
    }

    concat::fragment { '1':
      target  => 'not_abs_path',
      content => '1',
      order   => '01',
    }

    concat::fragment { '2':
      target  => 'not_abs_path',
      content => '2',
      order   => '02',
    }
  EOS

  it 'applies the manifest twice with no stderr' do
    apply_manifest(pp, :catch_failures => true)
    apply_manifest(pp, :catch_changes => true)
  end

  describe file("#{basedir}/file") do
    it { should be_file }
    its(:content) {
      should match '1'
      should match '2'
    }
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
puppet-retrospec-0.12.1 spec/fixtures/modules/concat/spec/acceptance/symbolic_name_spec.rb
puppet-retrospec-0.12.0 spec/fixtures/modules/concat/spec/acceptance/symbolic_name_spec.rb
puppet-retrospec-0.11.0 spec/fixtures/modules/concat/spec/acceptance/symbolic_name_spec.rb
puppet-retrospec-0.10.0 spec/fixtures/modules/concat/spec/acceptance/symbolic_name_spec.rb
puppet-retrospec-0.9.1 spec/fixtures/modules/concat/spec/acceptance/symbolic_name_spec.rb
puppet-retrospec-0.9.0 spec/fixtures/modules/concat/spec/acceptance/symbolic_name_spec.rb