X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=spec%2Fdefines%2Fbuilddep_spec.rb;h=41152d5c9ba11662e86c608a5157bc203bbc5507;hb=0f8152536724a29441923c1cb82282e8fa2951dc;hp=4e2b698d93883b21043a0c18f9aed6e9ec9d598b;hpb=2ce47f065222ddf7adcd13aeb42f138130dac11c;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/spec/defines/builddep_spec.rb b/spec/defines/builddep_spec.rb index 4e2b698..41152d5 100644 --- a/spec/defines/builddep_spec.rb +++ b/spec/defines/builddep_spec.rb @@ -1,12 +1,13 @@ require 'spec_helper' describe 'apt::builddep', :type => :define do + let(:facts) { { :lsbdistid => 'Debian', :osfamily => 'Debian' } } let(:title) { 'my_package' } - describe "should require apt-get update" do - it { should contain_exec("apt_update").with({ - 'command' => "/usr/bin/apt-get update", - 'refreshonly' => true + 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({