diff options
author | Lutz Bader <bader@synyx.de> | 2015-08-14 14:52:35 +0200 |
---|---|---|
committer | Lutz Bader <bader@synyx.de> | 2015-08-14 14:52:35 +0200 |
commit | facbd07d35ee9527ac950c804889f2ffece96809 (patch) | |
tree | d8d584652b3bdd045134be5bdb56cd38c3ea12e3 /spec | |
parent | e98e52de298b13b3808f6b50da16e8adff817389 (diff) |
Add tests for Raspbian
Diffstat (limited to 'spec')
-rw-r--r-- | spec/classes/unattended_upgrades_spec.rb | 16 |
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 { |