Browse Source

test(rubocop): fix all violations

pull/28/head
Imran Iqbal 3 years ago
parent
commit
afe8620a55
No account linked to committer's email address
3 changed files with 8 additions and 3 deletions
  1. +4
    -2
      test/integration/default/controls/config_spec.rb
  2. +2
    -0
      test/integration/default/controls/package_spec.rb
  3. +2
    -1
      test/integration/default/controls/service_spec.rb

+ 4
- 2
test/integration/default/controls/config_spec.rb View File

@@ -1,8 +1,10 @@
# frozen_string_literal: true

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

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

describe file('/etc/syslog-ng/syslog-ng.conf') do
it { should exist }

+ 2
- 0
test/integration/default/controls/package_spec.rb View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true

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


+ 2
- 1
test/integration/default/controls/service_spec.rb View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true

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

end

Loading…
Cancel
Save