From 9b9a53778eb2ab2d131d9975216812263ee66582 Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Mon, 11 Jul 2016 16:36:37 +0200 Subject: rubocop: fix Style/TrailingCommaInArguments --- spec/classes/unattended_upgrades_spec.rb | 50 ++++++++++++++++---------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/spec/classes/unattended_upgrades_spec.rb b/spec/classes/unattended_upgrades_spec.rb index 2d2bf79..f13f78a 100644 --- a/spec/classes/unattended_upgrades_spec.rb +++ b/spec/classes/unattended_upgrades_spec.rb @@ -25,21 +25,21 @@ describe 'unattended_upgrades' do it { should contain_apt__conf('unattended-upgrades').with( require: 'Package[unattended-upgrades]', - notify_update: false, + notify_update: false ) } it { should contain_apt__conf('periodic').with( require: 'Package[unattended-upgrades]', - notify_update: false, + notify_update: false ) } it { should contain_apt__conf('options').with( require: 'Package[unattended-upgrades]', - notify_update: false, + notify_update: false ) } @@ -47,7 +47,7 @@ describe 'unattended_upgrades' do should create_file(file_unattended).with( owner: 'root', group: 'root', - mode: '0644', + mode: '0644' ).with_content( /Unattended-Upgrade::Origins-Pattern {/ ).with_content( @@ -77,7 +77,7 @@ describe 'unattended_upgrades' do should create_file(file_periodic).with( owner: 'root', group: 'root', - mode: '0644', + mode: '0644' ).with_content( /APT::Periodic::Enable "1";/ ).with_content( @@ -106,14 +106,14 @@ describe 'unattended_upgrades' do } it { should contain_apt__conf('auto-upgrades').with( - ensure: 'absent', + ensure: 'absent' ) } it { should create_file(file_options).with( owner: 'root', group: 'root', - mode: '0644', + mode: '0644' ).with_content( /^Dpkg::Options\s{/ ).with_content( @@ -139,7 +139,7 @@ describe 'unattended_upgrades' do should create_file(file_unattended).with( owner: 'root', group: 'root', - mode: '0644', + mode: '0644' ).with_content( # This section varies for different releases /\Unattended-Upgrade::Allowed-Origins\ {\n @@ -162,7 +162,7 @@ describe 'unattended_upgrades' do should create_file(file_unattended).with( owner: 'root', group: 'root', - mode: '0644', + mode: '0644' ).with_content( # This section varies for different releases /\Unattended-Upgrade::Origins-Pattern\ {\n @@ -184,7 +184,7 @@ describe 'unattended_upgrades' do should create_file(file_unattended).with( owner: 'root', group: 'root', - mode: '0644', + mode: '0644' ).with_content( # This section varies for different releases /\Unattended-Upgrade::Origins-Pattern\ {\n @@ -206,7 +206,7 @@ describe 'unattended_upgrades' do should create_file(file_unattended).with( owner: 'root', group: 'root', - mode: '0644', + mode: '0644' ).with_content( # This is the only section that's different for Ubuntu compared to Debian /\Unattended-Upgrade::Allowed-Origins\ {\n @@ -228,7 +228,7 @@ describe 'unattended_upgrades' do should create_file(file_unattended).with( owner: 'root', group: 'root', - mode: '0644', + mode: '0644' ).with_content( # This is the only section that's different for Ubuntu compared to Debian /\Unattended-Upgrade::Allowed-Origins\ {\n @@ -250,7 +250,7 @@ describe 'unattended_upgrades' do should create_file(file_unattended).with( owner: 'root', group: 'root', - mode: '0644', + mode: '0644' ).with_content( # This is the only section that's different for Ubuntu compared to Debian /\Unattended-Upgrade::Allowed-Origins\ {\n @@ -272,7 +272,7 @@ describe 'unattended_upgrades' do should create_file(file_unattended).with( owner: 'root', group: 'root', - mode: '0644', + mode: '0644' ).with_content( # This is the only section that's different for Ubuntu compared to Debian /\Unattended-Upgrade::Allowed-Origins\ {\n @@ -293,7 +293,7 @@ describe 'unattended_upgrades' do should create_file(file_unattended).with( owner: 'root', group: 'root', - mode: '0644', + mode: '0644' ) } end @@ -310,7 +310,7 @@ describe 'unattended_upgrades' do should create_file(file_unattended).with( 'owner' => 'root', 'group' => 'root', - 'mode' => '0644', + 'mode' => '0644' ).with_content( # This is the only section that's different for Ubuntu compared to Debian /\Unattended-Upgrade::Allowed-Origins\ {\n @@ -332,7 +332,7 @@ describe 'unattended_upgrades' do should create_file(file_unattended).with( 'owner' => 'root', 'group' => 'root', - 'mode' => '0644', + 'mode' => '0644' ).with_content( # This is the only section that's different for Ubuntu compared to Debian /\Unattended-Upgrade::Allowed-Origins\ {\n @@ -354,7 +354,7 @@ describe 'unattended_upgrades' do should create_file(file_unattended).with( 'owner' => 'root', 'group' => 'root', - 'mode' => '0644', + 'mode' => '0644' ).with_content( # This is the only section that's different for Ubuntu compared to Debian /\Unattended-Upgrade::Allowed-Origins\ {\n @@ -407,20 +407,20 @@ describe 'unattended_upgrades' do it { should contain_apt__conf('unattended-upgrades').with( require: 'Package[unattended-upgrades]', - notify_update: true, + notify_update: true ) } it { should contain_apt__conf('periodic').with( require: 'Package[unattended-upgrades]', - notify_update: true, + notify_update: true ) } it { should contain_apt__conf('options').with( require: 'Package[unattended-upgrades]', - notify_update: true, + notify_update: true ) } @@ -428,7 +428,7 @@ describe 'unattended_upgrades' do should create_file(file_unattended).with( owner: 'root', group: 'root', - mode: '0644', + mode: '0644' ).with_content( /Unattended-Upgrade::Allowed-Origins {\n\t"bananas";\n};/ ).with_content( @@ -458,7 +458,7 @@ describe 'unattended_upgrades' do should create_file(file_periodic).with( owner: 'root', group: 'root', - mode: '0644', + mode: '0644' ).with_content( /APT::Periodic::Enable "1";/ ).with_content( @@ -492,7 +492,7 @@ describe 'unattended_upgrades' do should create_file(file_options).with( owner: 'root', group: 'root', - mode: '0644', + mode: '0644' ).with_content( /^Dpkg::Options\s{/ ).without_content( @@ -507,7 +507,7 @@ describe 'unattended_upgrades' do } it { should contain_apt__conf('auto-upgrades').with( - ensure: 'absent', + ensure: 'absent' ) } end -- cgit v1.2.3