module-puppetlabs-apt/spec/defines/builddep_spec.rb

20 lines
555 B
Ruby
Raw Normal View History

require 'spec_helper'
describe 'apt::builddep', :type => :define do
let(:facts) { { :lsbdistid => 'Debian', :osfamily => 'Debian' } }
let(:title) { 'my_package' }
2014-08-01 00:11:57 +02:00
describe "defaults" do
2014-09-25 00:27:06 +02:00
it { should contain_exec("apt-builddep-my_package").that_requires('Exec[apt_update]').with({
2014-08-01 00:11:57 +02:00
'command' => "/usr/bin/apt-get -y --force-yes build-dep my_package",
'logoutput' => 'on_failure'
})
}
it { should contain_anchor("apt::builddep::my_package").with({
'require' => 'Class[Apt::Update]',
})
}
end
end