Skip to content

Commit 67de777

Browse files
committed
fix(rubocop): add fixes using rubocop --safe-auto-correct
1 parent a21ead0 commit 67de777

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

test/integration/preferences/controls/preferences_spec.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
control 'Apt preferences' do
24
title 'should be configured'
35

test/integration/repositories/controls/repositories_spec.rb

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
# frozen_string_literal: true
2+
13
control 'Apt repositories' do
24
title 'should be configured'
35

4-
if os[:name] == 'ubuntu'
5-
keyring_package = 'ubuntu-keyring'
6-
else
7-
keyring_package = 'debian-archive-keyring'
8-
end
6+
keyring_package = if os[:name] == 'ubuntu'
7+
'ubuntu-keyring'
8+
else
9+
'debian-archive-keyring'
10+
end
911

1012
describe package(keyring_package) do
1113
it { should be_installed }

0 commit comments

Comments
 (0)