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

37 lines
761 B
Ruby
Raw Normal View History

require 'spec_helper_acceptance'
describe 'apt::builddep', :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')) do
context 'reset' do
it 'removes packages' do
2014-02-21 20:55:16 +01:00
shell('apt-get -y remove znc')
shell('apt-get -y remove g++')
end
end
context 'apt::builddep' do
it 'should work with no errors' do
pp = <<-EOS
include '::apt'
2014-02-21 20:55:16 +01:00
apt::builddep { 'znc': }
EOS
apply_manifest(pp, :catch_failures => true)
end
describe 'should install g++ as a dependency' do
describe package('g++') do
it { should be_installed }
end
end
end
context 'reset' do
it 'removes packages' do
2014-02-21 20:55:16 +01:00
shell('apt-get -y remove znc')
shell('apt-get -y remove g++')
end
end
end