Skip to content

Commit

Permalink
fix(rubocop): add fixes using rubocop --safe-auto-correct
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Oct 8, 2019
1 parent a21ead0 commit 67de777
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 2 additions & 0 deletions test/integration/preferences/controls/preferences_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

control 'Apt preferences' do
title 'should be configured'

Expand Down
12 changes: 7 additions & 5 deletions test/integration/repositories/controls/repositories_spec.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# frozen_string_literal: true

control 'Apt repositories' do
title 'should be configured'

if os[:name] == 'ubuntu'
keyring_package = 'ubuntu-keyring'
else
keyring_package = 'debian-archive-keyring'
end
keyring_package = if os[:name] == 'ubuntu'
'ubuntu-keyring'
else
'debian-archive-keyring'
end

describe package(keyring_package) do
it { should be_installed }
Expand Down

0 comments on commit 67de777

Please sign in to comment.