From 7637c1dc2ecec7359267e1d2b3aa2ae7e5973d4e Mon Sep 17 00:00:00 2001 From: Patrick Brideau Date: Thu, 13 Oct 2022 12:10:52 -0400 Subject: [PATCH] fix: linter --- spec/classes/apache/vhost_spec.rb | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/spec/classes/apache/vhost_spec.rb b/spec/classes/apache/vhost_spec.rb index d740b009..4df06042 100644 --- a/spec/classes/apache/vhost_spec.rb +++ b/spec/classes/apache/vhost_spec.rb @@ -46,14 +46,11 @@ end if ['RedHat'].include?(facts[:os]['family']) - ['3.6','3.8','3.9'].each do |python_version| + ['3.6', '3.8', '3.9'].each do |python_version| context "with python_versions #{python_version}" do - let (:pre_condition) do + let(:pre_condition) do [ - "class { 'puppetboard': - python_version => \"#{python_version}\", - } - " + "class { 'puppetboard': python_version => \"#{python_version}\", }" ] end @@ -66,14 +63,12 @@ package_name = 'python39-mod_wsgi' end - it { is_expected.to contain_class('apache::mod::wsgi').with( - package_name: package_name - ) } + it { is_expected.to contain_class('apache::mod::wsgi').with(package_name: package_name) } end end - context "with unsupported python_versions" do - let (:pre_condition) do + context 'with unsupported python_versions' do + let(:pre_condition) do [ "class { 'puppetboard': python_version => '3.7',