summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/classes/unattended_upgrades_spec.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/classes/unattended_upgrades_spec.rb b/spec/classes/unattended_upgrades_spec.rb
index fa8d1b1..f78eaa9 100644
--- a/spec/classes/unattended_upgrades_spec.rb
+++ b/spec/classes/unattended_upgrades_spec.rb
@@ -110,6 +110,22 @@ describe 'unattended_upgrades' do
)}
end
+ context 'with defaults on Raspbian' do
+ let(:facts) { {
+ :osfamily => 'Debian',
+ :lsbdistid => 'Raspbian',
+ :lsbistcodename => 'jessie',
+ :lsbrelease => '8.0',
+ } }
+ it {
+ should create_file(file_unattended).with({
+ 'owner' => 'root',
+ 'group' => 'root',
+ 'mode' => '0644',
+ })
+ }
+ end
+
context 'set all the things' do
let :params do
{