Cleaned up unit tests.
[puppet-modules/puppetlabs-apt.git] / spec / defines / builddep_spec.rb
1 require 'spec_helper'
2 describe 'apt::builddep', :type => :define do
3
4   let(:facts) { { :lsbdistid => 'Debian' } }
5   let(:title) { 'my_package' }
6
7   describe "defaults" do
8     it { should contain_exec("apt-builddep-my_package").that_notifies('Exec[apt_update]').with({
9         'command' => "/usr/bin/apt-get -y --force-yes build-dep my_package",
10         'logoutput' => 'on_failure'
11       })
12     }
13     it { should contain_anchor("apt::builddep::my_package").with({
14         'require' => 'Class[Apt::Update]',
15       })
16     }
17   end
18
19 end