From 4b71f75846e15f284c9bab35e8a5d1900f29edb9 Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Tue, 9 Apr 2024 22:07:06 +0200 Subject: [PATCH] Update lib/puppetlabs_spec_helper/rake_tasks.rb Co-authored-by: Ewoud Kohl van Wijngaarden --- lib/puppetlabs_spec_helper/rake_tasks.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/puppetlabs_spec_helper/rake_tasks.rb b/lib/puppetlabs_spec_helper/rake_tasks.rb index ad68e5e8..07fb5e7c 100644 --- a/lib/puppetlabs_spec_helper/rake_tasks.rb +++ b/lib/puppetlabs_spec_helper/rake_tasks.rb @@ -112,11 +112,7 @@ else args = ['--type', 'rspec'] - additional_options = if ENV['CI_SPEC_OPTIONS'].nil? || ENV['CI_SPEC_OPTIONS'].strip.empty? - ['--format', 'progress'] - else - ENV['CI_SPEC_OPTIONS'].strip.split + ['--format', 'progress'] - end + additional_options = ['--format', 'progress'] + ENV['CI_SPEC_OPTIONS'].to_s.strip.split args.push('--').concat(additional_options).push('--') args.concat(Rake::FileList[pattern].to_a)