module-puppetlabs-apt/spec/acceptance/release_spec.rb

26 lines
568 B
Ruby

require 'spec_helper_acceptance'
describe 'apt::release class' do
context 'release_id' do
it 'should work with no errors' do
pp = <<-EOS
include apt
class { 'apt::release': release_id => 'precise', }
EOS
apply_manifest(pp, :catch_failures => true)
end
describe file('/etc/apt/apt.conf.d/01release') do
it { should be_file }
it { should contain 'APT::Default-Release "precise";' }
end
end
context 'reset' do
it 'cleans up' do
shell('rm -rf /etc/apt/apt.conf.d/01release')
end
end
end