1 require 'spec_helper_acceptance'
3 describe 'apt::conf define' do
5 it 'should work with no errors' do
12 apply_manifest(pp, :catch_failures => true)
15 describe file('/etc/apt/apt.conf.d/50test') do
17 it { should contain 'test' }
23 it 'should work with no errors' do
31 apply_manifest(pp, :catch_failures => true)
34 describe file('/etc/apt/apt.conf.d/50test') do
35 it { should_not be_file }
42 it 'should work with no errors' do
51 apply_manifest(pp, :catch_failures => true)
54 describe file('/etc/apt/apt.conf.d/99test') do
56 it { should contain 'test' }
62 it 'deletes 99test' do
63 shell ('rm -rf /etc/apt/apt.conf.d/99test')