builddep_spec.rb 555 B

12345678910111213141516171819
  1. require 'spec_helper'
  2. describe 'apt::builddep', :type => :define do
  3. let(:facts) { { :lsbdistid => 'Debian', :osfamily => 'Debian' } }
  4. let(:title) { 'my_package' }
  5. describe "defaults" do
  6. it { should contain_exec("apt-builddep-my_package").that_requires('Exec[apt_update]').with({
  7. 'command' => "/usr/bin/apt-get -y --force-yes build-dep my_package",
  8. 'logoutput' => 'on_failure'
  9. })
  10. }
  11. it { should contain_anchor("apt::builddep::my_package").with({
  12. 'require' => 'Class[Apt::Update]',
  13. })
  14. }
  15. end
  16. end