From 8a9919723045d15d0352f8970a99e764a86a40b4 Mon Sep 17 00:00:00 2001 From: Morgan Haskel Date: Tue, 14 Apr 2015 09:59:01 -0700 Subject: Test fixes puppetlabs_spec_helper doesn't allow pinning to a branch instead of a tag/ref, and the requires are in the apt_conf not on the files. --- spec/classes/unattended_upgrades_spec.rb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'spec') diff --git a/spec/classes/unattended_upgrades_spec.rb b/spec/classes/unattended_upgrades_spec.rb index b31f3d7..d53f7d5 100644 --- a/spec/classes/unattended_upgrades_spec.rb +++ b/spec/classes/unattended_upgrades_spec.rb @@ -12,12 +12,21 @@ describe 'unattended_upgrades' do it { should contain_package("unattended-upgrades") } + it { should contain_apt__conf('unattended-upgrades').with({ + "require" => "Package[unattended-upgrades]", + }) + } + + it { should contain_apt__conf('periodic').with({ + "require" => "Package[unattended-upgrades]", + }) + } + it { should create_file(file_unattended).with({ "owner" => "root", "group" => "root", "mode" => "0644", - "require" => "Package[unattended-upgrades]", }) } @@ -26,7 +35,6 @@ describe 'unattended_upgrades' do "owner" => "root", "group" => "root", "mode" => "0644", - "require" => "Package[unattended-upgrades]", }) } end -- cgit v1.2.3