apply_manifest(pp, :catch_failures => true)
end
- describe file('/etc/apt/apt.conf.d/proxy') do
+ describe file('/etc/apt/apt.conf.d/01proxy') do
it { should be_file }
it { should contain 'Acquire::http::Proxy "http://localhost:7042\";' }
end
+ describe file('/etc/apt/apt.conf.d/proxy') do
+ it { should_not be_file }
+ end
end
context 'purge_sources' do
apply_manifest(pp, :catch_failures => true)
end
- describe file('/etc/apt/apt.conf.d/proxy') do
+ describe file('/etc/apt/apt.conf.d/01proxy') do
it { should be_file }
it { should contain 'Acquire::http::Proxy "http://localhost:7042\";' }
end
+ describe file('/etc/apt/apt.conf.d/proxy') do
+ it { should_not be_file }
+ end
end
context 'purge_sources' do