fuel-library/deployment/puppet/apt/spec/defines/builddep_spec.rb
Bogdan Dobrelya 0e0c6853fb Sync apt module from puppetlabs
v1.8.0 47c6f338eda98ed849531d92b63c5e33103f76e4
source https://github.com/puppetlabs/puppetlabs-apt

Related blueprint merge-openstack-puppet-modules
Related-bug: #1443800

Change-Id: I5f86751ba9b16fdedd209677bb67e23cdb85b44f
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2015-04-14 11:49:06 +02:00

20 lines
555 B
Ruby

require 'spec_helper'
describe 'apt::builddep', :type => :define do
let(:facts) { { :lsbdistid => 'Debian', :osfamily => 'Debian' } }
let(:title) { 'my_package' }
describe "defaults" do
it { should contain_exec("apt-builddep-my_package").that_requires('Exec[apt_update]').with({
'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