From b4483ef64a2dcb3c79cb309f279527a8635adc67 Mon Sep 17 00:00:00 2001 From: vimesa Date: Mon, 4 Dec 2023 10:33:15 +0000 Subject: [PATCH 1/2] Rubocop --- spec/services/rsyslog_spec.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/spec/services/rsyslog_spec.rb b/spec/services/rsyslog_spec.rb index c1431ca..a7953e9 100644 --- a/spec/services/rsyslog_spec.rb +++ b/spec/services/rsyslog_spec.rb @@ -75,7 +75,6 @@ describe file(config_directory) do it { should_not exist } end - files.each do |file| describe file("#{config_directory}/#{file}") do it { should_not exist } From 5e5ae8a0d970cc0526dce55fc63fe72a8fa0a4b9 Mon Sep 17 00:00:00 2001 From: vimesa Date: Mon, 4 Dec 2023 11:59:39 +0000 Subject: [PATCH 2/2] Rubocop --- spec/services/rsyslog_spec.rb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/spec/services/rsyslog_spec.rb b/spec/services/rsyslog_spec.rb index a7953e9..8dae683 100644 --- a/spec/services/rsyslog_spec.rb +++ b/spec/services/rsyslog_spec.rb @@ -72,12 +72,11 @@ it { should_not be_running } end - describe file(config_directory) do - it { should_not exist } - end - files.each do |file| - describe file("#{config_directory}/#{file}") do - it { should_not exist } + describe 'Configuration files and directories' do + [config_directory, *files.map { |file| "#{config_directory}/#{file}" }].each do |file_path| + describe file(file_path) do + it { should_not exist } + end end end