Sha256: 18250431f39a03c4f0a304d2a52c997553eb939612cb7bab5fd61569a79e210a

Contents?: true

Size: 629 Bytes

Versions: 7

Compression:

Stored size: 629 Bytes

Contents

require 'spec_helper_system'

describe 'basic concat test' do
  context 'should run successfully' do
    pp = <<-EOS
      concat { '/tmp/concat/file':
        owner => root,
        group => root,
        mode  => '0644',
        force => true,
      }
    EOS

    context puppet_apply(pp) do
      its(:stderr) { should be_empty }
      its(:exit_code) { should_not == 1 }
      its(:refresh) { should be_nil }
      its(:stderr) { should be_empty }
      its(:exit_code) { should be_zero }
    end

    describe file('/tmp/concat/file') do
      it { should be_file }
      it { should_not contain '1\n2' }
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
freighthop-0.6.1 modules/concat/spec/system/empty_spec.rb
freighthop-0.6.0 modules/concat/spec/system/empty_spec.rb
freighthop-0.5.2 modules/concat/spec/system/empty_spec.rb
freighthop-0.5.1 modules/concat/spec/system/empty_spec.rb
freighthop-0.5.0 modules/concat/spec/system/empty_spec.rb
freighthop-0.4.1 modules/concat/spec/system/empty_spec.rb
freighthop-0.4.0 modules/concat/spec/system/empty_spec.rb