From eaab2fc08b991d93d9c8c1c2f443c8a63411c1c8 Mon Sep 17 00:00:00 2001 From: Daniele Sluijters Date: Thu, 23 Apr 2015 21:37:21 +0200 Subject: init: Do not include apt ourselves. Using `include apt` causes problems. If someone in the catalogue does an `class { 'apt: }` and we come after it with `include apt` this will work. However if the order is reversed we'll get a duplicate resource definition. Closes #12 --- spec/classes/unattended_upgrades_spec.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'spec') diff --git a/spec/classes/unattended_upgrades_spec.rb b/spec/classes/unattended_upgrades_spec.rb index 28feaa7..fa8d1b1 100644 --- a/spec/classes/unattended_upgrades_spec.rb +++ b/spec/classes/unattended_upgrades_spec.rb @@ -9,6 +9,9 @@ describe 'unattended_upgrades' do :lsbistcodename => 'wheezy', :lsbrelease => '7.0.3', } } + let(:pre_condition) { + 'include ::apt' + } context 'with defaults on Debian' do it { should contain_package('unattended-upgrades') } -- cgit v1.2.3