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',