From facbd07d35ee9527ac950c804889f2ffece96809 Mon Sep 17 00:00:00 2001 From: Lutz Bader Date: Fri, 14 Aug 2015 14:52:35 +0200 Subject: Add tests for Raspbian --- spec/classes/unattended_upgrades_spec.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'spec') 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 { -- cgit v1.2.3