1
0
Fork 0
mirror of synced 2024-11-25 02:05:36 -05:00

fix(rubocop): add fixes using rubocop --safe-auto-correct

This commit is contained in:
Imran Iqbal 2019-10-11 21:31:38 +01:00
parent 8c14b06140
commit 652c350785
No known key found for this signature in database
GPG key ID: 6D8629439D2B7819
2 changed files with 3 additions and 2 deletions

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
control 'Sudoers configuration' do control 'Sudoers configuration' do
title 'should match desired lines' title 'should match desired lines'
@ -17,7 +19,6 @@ control 'Sudoers configuration' do
its('content') { should include '%sudo ALL=(nodejs) NOPASSWD: ALL' } its('content') { should include '%sudo ALL=(nodejs) NOPASSWD: ALL' }
its('content') { should include '+sysadmins ALL=(ALL) ALL' } its('content') { should include '+sysadmins ALL=(ALL) ALL' }
its('content') { should include '#includedir /etc/sudoers.d' } its('content') { should include '#includedir /etc/sudoers.d' }
end end
describe file('/etc/sudoers.d/extra-file') do describe file('/etc/sudoers.d/extra-file') do
@ -43,5 +44,4 @@ control 'Sudoers configuration' do
its('mode') { should cmp '0440' } its('mode') { should cmp '0440' }
its('content') { should include '+other_netgroup ALL=(ALL) ALL' } its('content') { should include '+other_netgroup ALL=(ALL) ALL' }
end end
end end

View file

@ -1,3 +1,4 @@
# frozen_string_literal: true
control 'Sudo package' do control 'Sudo package' do
title 'should be installed' title 'should be installed'