1 require 'spec_helper_acceptance'
3 describe 'apt::builddep', :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')) do
6 it 'removes packages' do
7 shell('apt-get -y remove znc')
8 shell('apt-get -y remove g++')
12 context 'apt::builddep' do
13 it 'should work with no errors' do
16 apt::builddep { 'znc': }
19 apply_manifest(pp, :catch_failures => true)
22 describe 'should install g++ as a dependency' do
23 describe package('g++') do
24 it { should be_installed }
30 it 'removes packages' do
31 shell('apt-get -y remove znc')
32 shell('apt-get -y remove g++')