module-concat/spec/system/symbolic_name_spec.rb

36 lines
735 B
Ruby
Raw Normal View History

require 'spec_helper_system'
describe 'symbolic name' do
2013-11-14 04:28:27 +01:00
pp = <<-EOS
concat { 'not_abs_path':
2013-11-06 04:40:03 +01:00
path => '/tmp/concat/file',
}
concat::fragment { '1':
target => 'not_abs_path',
content => '1',
order => '01',
}
concat::fragment { '2':
target => 'not_abs_path',
content => '2',
order => '02',
}
2013-11-14 04:28:27 +01:00
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
2013-11-06 04:40:03 +01:00
describe file('/tmp/concat/file') do
it { should be_file }
it { should contain '1' }
it { should contain '2' }
end
end