diff options
author | Tim Meusel <tim@bastelfreak.de> | 2016-11-02 13:55:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-02 13:55:48 +0100 |
commit | e091e467041fa099bd22b35a65a359456961e4d6 (patch) | |
tree | 39797feba18237a033121cf4408a97c02ae10466 /spec | |
parent | 53e8d94274948ff2b9cd4eac9dcfe9a29a6ddef5 (diff) | |
parent | d469e7ddda4def790483e43a3750c3d1a81eb633 (diff) |
Merge pull request #73 from dhoppe/readme
Add missing badges
Diffstat (limited to 'spec')
-rw-r--r-- | spec/classes/unattended_upgrades_spec.rb | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/spec/classes/unattended_upgrades_spec.rb b/spec/classes/unattended_upgrades_spec.rb index ea88fad..747ccb1 100644 --- a/spec/classes/unattended_upgrades_spec.rb +++ b/spec/classes/unattended_upgrades_spec.rb @@ -19,35 +19,35 @@ describe 'unattended_upgrades' do context 'with defaults on Debian' do it do - should contain_package('unattended-upgrades') - should compile.with_all_deps - should contain_class('unattended_upgrades::params') - should contain_class('unattended_upgrades') + is_expected.to contain_package('unattended-upgrades') + is_expected.to compile.with_all_deps + is_expected.to contain_class('unattended_upgrades::params') + is_expected.to contain_class('unattended_upgrades') end it do - should contain_apt__conf('unattended-upgrades').with( + is_expected.to contain_apt__conf('unattended-upgrades').with( require: 'Package[unattended-upgrades]', notify_update: false ) end it do - should contain_apt__conf('periodic').with( + is_expected.to contain_apt__conf('periodic').with( require: 'Package[unattended-upgrades]', notify_update: false ) end it do - should contain_apt__conf('options').with( + is_expected.to contain_apt__conf('options').with( require: 'Package[unattended-upgrades]', notify_update: false ) end it do - should create_file(file_unattended).with( + is_expected.to create_file(file_unattended).with( owner: 'root', group: 'root', mode: '0644' @@ -77,7 +77,7 @@ describe 'unattended_upgrades' do end it do - should create_file(file_periodic).with( + is_expected.to create_file(file_periodic).with( owner: 'root', group: 'root', mode: '0644' @@ -109,12 +109,12 @@ describe 'unattended_upgrades' do end it do - should contain_apt__conf('auto-upgrades').with( + is_expected.to contain_apt__conf('auto-upgrades').with( ensure: 'absent' ) end it do - should create_file(file_options).with( + is_expected.to create_file(file_options).with( owner: 'root', group: 'root', mode: '0644' @@ -142,7 +142,7 @@ describe 'unattended_upgrades' do } end it do - should create_file(file_unattended).with( + is_expected.to create_file(file_unattended).with( owner: 'root', group: 'root', mode: '0644' @@ -167,7 +167,7 @@ describe 'unattended_upgrades' do } end it do - should create_file(file_unattended).with( + is_expected.to create_file(file_unattended).with( owner: 'root', group: 'root', mode: '0644' @@ -191,7 +191,7 @@ describe 'unattended_upgrades' do } end it do - should create_file(file_unattended).with( + is_expected.to create_file(file_unattended).with( owner: 'root', group: 'root', mode: '0644' @@ -214,7 +214,7 @@ describe 'unattended_upgrades' do } end it do - should create_file(file_unattended).with( + is_expected.to create_file(file_unattended).with( owner: 'root', group: 'root', mode: '0644' @@ -237,7 +237,7 @@ describe 'unattended_upgrades' do } end it do - should create_file(file_unattended).with( + is_expected.to create_file(file_unattended).with( owner: 'root', group: 'root', mode: '0644' @@ -260,7 +260,7 @@ describe 'unattended_upgrades' do } end it do - should create_file(file_unattended).with( + is_expected.to create_file(file_unattended).with( owner: 'root', group: 'root', mode: '0644' @@ -286,7 +286,7 @@ describe 'unattended_upgrades' do } end it do - should create_file(file_unattended).with( + is_expected.to create_file(file_unattended).with( owner: 'root', group: 'root', mode: '0644' @@ -309,7 +309,7 @@ describe 'unattended_upgrades' do } end it do - should create_file(file_unattended).with( + is_expected.to create_file(file_unattended).with( owner: 'root', group: 'root', mode: '0644' @@ -332,7 +332,7 @@ describe 'unattended_upgrades' do } end it do - should create_file(file_unattended).with( + is_expected.to create_file(file_unattended).with( owner: 'root', group: 'root', mode: '0644' @@ -355,7 +355,7 @@ describe 'unattended_upgrades' do } end it do - should create_file(file_unattended).with( + is_expected.to create_file(file_unattended).with( owner: 'root', group: 'root', mode: '0644' @@ -374,7 +374,7 @@ describe 'unattended_upgrades' do } end it do - should create_file(file_unattended).with( + is_expected.to create_file(file_unattended).with( 'owner' => 'root', 'group' => 'root', 'mode' => '0644' @@ -398,7 +398,7 @@ describe 'unattended_upgrades' do } end it do - should create_file(file_unattended).with( + is_expected.to create_file(file_unattended).with( 'owner' => 'root', 'group' => 'root', 'mode' => '0644' @@ -422,7 +422,7 @@ describe 'unattended_upgrades' do } end it do - should create_file(file_unattended).with( + is_expected.to create_file(file_unattended).with( 'owner' => 'root', 'group' => 'root', 'mode' => '0644' @@ -474,31 +474,31 @@ describe 'unattended_upgrades' do } } end - it { should contain_package('unattended-upgrades') } + it { is_expected.to contain_package('unattended-upgrades') } it do - should contain_apt__conf('unattended-upgrades').with( + is_expected.to contain_apt__conf('unattended-upgrades').with( require: 'Package[unattended-upgrades]', notify_update: true ) end it do - should contain_apt__conf('periodic').with( + is_expected.to contain_apt__conf('periodic').with( require: 'Package[unattended-upgrades]', notify_update: true ) end it do - should contain_apt__conf('options').with( + is_expected.to contain_apt__conf('options').with( require: 'Package[unattended-upgrades]', notify_update: true ) end it do - should create_file(file_unattended).with( + is_expected.to create_file(file_unattended).with( owner: 'root', group: 'root', mode: '0644' @@ -528,7 +528,7 @@ describe 'unattended_upgrades' do end it do - should create_file(file_periodic).with( + is_expected.to create_file(file_periodic).with( owner: 'root', group: 'root', mode: '0644' @@ -562,7 +562,7 @@ describe 'unattended_upgrades' do end it do - should create_file(file_options).with( + is_expected.to create_file(file_options).with( owner: 'root', group: 'root', mode: '0644' @@ -579,7 +579,7 @@ describe 'unattended_upgrades' do ) end it do - should contain_apt__conf('auto-upgrades').with( + is_expected.to contain_apt__conf('auto-upgrades').with( ensure: 'absent' ) end |