Cleaned up unit tests.
[puppet-modules/puppetlabs-apt.git] / spec / defines / builddep_spec.rb
index a0cbaa4cc098e80acde84a7951788d1f64d31698..88cdf4fb6ef65d2372ce84b2abb964ba0f381312 100644 (file)
@@ -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({