2012-01-23 22:08:00 +01:00
|
|
|
require 'spec_helper'
|
|
|
|
describe 'apt::builddep', :type => :define do
|
|
|
|
|
|
|
|
let(:title) { 'my_package' }
|
|
|
|
|
2012-05-09 21:22:28 +02:00
|
|
|
describe "should require apt-get update" do
|
2012-05-04 00:44:17 +02:00
|
|
|
it { should contain_exec("apt_update").with({
|
2012-02-04 02:24:09 +01:00
|
|
|
'command' => "/usr/bin/apt-get update",
|
|
|
|
'refreshonly' => true
|
|
|
|
})
|
|
|
|
}
|
2012-05-09 21:22:28 +02:00
|
|
|
it { should contain_anchor("apt::builddep::my_package").with({
|
|
|
|
'require' => 'Class[Apt::Update]',
|
|
|
|
})
|
2012-01-23 22:08:00 +01:00
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|