Merge pull request #456 from johanfleury/cleaning/template/unattended-upgrades
[puppet-modules/puppetlabs-apt.git] / spec / defines / builddep_spec.rb
index 88cdf4fb6ef65d2372ce84b2abb964ba0f381312..41152d5c9ba11662e86c608a5157bc203bbc5507 100644 (file)
@@ -1,11 +1,11 @@
 require 'spec_helper'
 describe 'apt::builddep', :type => :define do
 
-  let(:facts) { { :lsbdistid => 'Debian' } }
+  let(:facts) { { :lsbdistid => 'Debian', :osfamily => 'Debian' } }
   let(:title) { 'my_package' }
 
   describe "defaults" do
-    it { should contain_exec("apt-builddep-my_package").that_notifies('Exec[apt_update]').with({
+    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'
       })