Skip to content

Commit 72b6ae8

Browse files
committed
🚑 ☔ fix use // around regular expression offenses
Signed-off-by: Ressl Robert <r.ressl@safematix.com>
1 parent 87a598e commit 72b6ae8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/integration/cis/run_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# => Audit Rules should have some Content
1212
describe file('/etc/audit/audit.rules') do
1313
it { should be_file }
14-
its('content') { should match(%r{-a always,exit -F arch=b32 -S init_module -S delete_module -k modules}) }
14+
its('content') { should match(/-a always,exit -F arch=b32 -S init_module -S delete_module -k modules/) }
1515
end
1616

1717
# => Audit Rules should have some Content
@@ -30,5 +30,5 @@
3030
it { should be_owned_by 'root' }
3131
it { should be_grouped_into 'root' }
3232
its('mode') { should cmp '0640' }
33-
its('content') { should match(%r{\# This file is managed using Chef.}) }
33+
its('content') { should match(/\# This file is managed using Chef./) }
3434
end

0 commit comments

Comments
 (0)