2012-01-23 22:08:00 +01:00
|
|
|
require 'spec_helper'
|
|
|
|
describe 'apt::builddep', :type => :define do
|
|
|
|
|
2014-08-18 22:12:55 +02:00
|
|
|
let(:facts) { { :lsbdistid => 'Debian', :osfamily => 'Debian' } }
|
2012-01-23 22:08:00 +01:00
|
|
|
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'
|
2012-02-04 02:24:09 +01:00
|
|
|
})
|
|
|
|
}
|
2012-05-09 21:22:28 +02:00
|
|
|
it { should contain_anchor("apt::builddep::my_package").with({
|
|
|
|
'require' => 'Class[Apt::Update]',
|
|
|
|
})
|
2012-01-23 22:08:00 +01:00
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|