Skip to content

Commit

Permalink
fix: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
teluq-pbrideau committed Oct 13, 2022
1 parent 82a5150 commit 7637c1d
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions spec/classes/apache/vhost_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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',
Expand Down

0 comments on commit 7637c1d

Please sign in to comment.