Added modules
This commit is contained in:
parent
c53c931217
commit
59ec520742
646 changed files with 35182 additions and 0 deletions
19
modules/apt/spec/defines/builddep_spec.rb
Normal file
19
modules/apt/spec/defines/builddep_spec.rb
Normal file
|
@ -0,0 +1,19 @@
|
|||
require 'spec_helper'
|
||||
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
|
||||
})
|
||||
}
|
||||
it { should contain_anchor("apt::builddep::my_package").with({
|
||||
'require' => 'Class[Apt::Update]',
|
||||
})
|
||||
}
|
||||
end
|
||||
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue