summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Meusel <tim@bastelfreak.de>2016-07-11 16:36:37 +0200
committerTim Meusel <tim@bastelfreak.de>2016-07-11 16:36:37 +0200
commit9b9a53778eb2ab2d131d9975216812263ee66582 (patch)
tree7d419197d53785ad902963db9adb7742ab4e8719
parent6c01fe76275f0fdfedb56e30a60e9f72e6984960 (diff)
rubocop: fix Style/TrailingCommaInArguments
-rw-r--r--spec/classes/unattended_upgrades_spec.rb50
1 files 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