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 11, 2019
1 parent 8c14b06 commit 652c350
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integration/default/controls/config.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

control 'Sudoers configuration' do
title 'should match desired lines'

Expand All @@ -17,7 +19,6 @@
its('content') { should include '%sudo ALL=(nodejs) NOPASSWD: ALL' }
its('content') { should include '+sysadmins ALL=(ALL) ALL' }
its('content') { should include '#includedir /etc/sudoers.d' }

end

describe file('/etc/sudoers.d/extra-file') do
Expand All @@ -43,5 +44,4 @@
its('mode') { should cmp '0440' }
its('content') { should include '+other_netgroup ALL=(ALL) ALL' }
end

end
1 change: 1 addition & 0 deletions test/integration/default/controls/package.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true

control 'Sudo package' do
title 'should be installed'
Expand Down

0 comments on commit 652c350

Please sign in to comment.