Skip to content

Commit

Permalink
test(rubocop): fix all violations
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Feb 27, 2021
1 parent e39ec5e commit afe8620
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 4 additions & 2 deletions test/integration/default/controls/config_spec.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# frozen_string_literal: true

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

str =
'''
'
source s_src {
internal();
};
Expand All @@ -20,7 +22,7 @@
filter(f_syslog3);
destination(d_syslog);
};
'''
'

describe file('/etc/syslog-ng/syslog-ng.conf') do
it { should exist }
Expand Down
2 changes: 2 additions & 0 deletions test/integration/default/controls/package_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

control 'SyslogNG package' do
title 'should be installed'

Expand Down
3 changes: 2 additions & 1 deletion test/integration/default/controls/service_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

syslogng_service =
case platform[:name]
when 'arch'
Expand All @@ -12,5 +14,4 @@
it { should be_enabled }
it { should be_running }
end

end

0 comments on commit afe8620

Please sign in to comment.