X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=spec%2Fdefines%2Fbuilddep_spec.rb;h=88cdf4fb6ef65d2372ce84b2abb964ba0f381312;hb=d6bdb4d9256415f38ac80a199afbaa8f6a7bad3a;hp=a0cbaa4cc098e80acde84a7951788d1f64d31698;hpb=9eaa3a43aa2568838106d1f139929c8e39d9943f;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/spec/defines/builddep_spec.rb b/spec/defines/builddep_spec.rb index a0cbaa4..88cdf4f 100644 --- a/spec/defines/builddep_spec.rb +++ b/spec/defines/builddep_spec.rb @@ -4,10 +4,10 @@ describe 'apt::builddep', :type => :define do let(:facts) { { :lsbdistid => '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_notifies('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({