summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDaniele Sluijters <daenney@users.noreply.github.com>2015-04-23 21:37:21 +0200
committerDaniele Sluijters <daenney@users.noreply.github.com>2015-04-23 21:38:25 +0200
commiteaab2fc08b991d93d9c8c1c2f443c8a63411c1c8 (patch)
treee3e12e056bf49c73bc2ef218dad24a664f2fea84 /spec
parent784efa5040926209df3bba775abb87a0a591bac7 (diff)
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
Diffstat (limited to 'spec')
-rw-r--r--spec/classes/unattended_upgrades_spec.rb3
1 files changed, 3 insertions, 0 deletions
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') }