Skip to content

Commit

Permalink
auto correct
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippe Beaumont committed Apr 30, 2022
1 parent d20db92 commit 2d6519e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions spec/classes/php_composer_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'spec_helper'

describe 'php::composer', type: :class do
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/php_fpm_service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
it { is_expected.to contain_class('php::pear') }
end

describe 'when called with no parameters' do # rubocop: disable RSpec/EmptyExampleGroup
describe 'when called with no parameters' do
case facts[:osfamily]
when 'Debian'
case facts[:operatingsystemrelease]
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/php_repo_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
end
end

describe 'when configuring a package repo' do # rubocop: disable RSpec/EmptyExampleGroup
describe 'when configuring a package repo' do
case facts[:osfamily]
when 'Debian'
case facts[:operatingsystem]
Expand Down
4 changes: 2 additions & 2 deletions spec/classes/php_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
it { is_expected.to compile.with_all_deps }
end

describe 'when called with no parameters' do # rubocop: disable RSpec/EmptyExampleGroup
describe 'when called with no parameters' do
case facts[:osfamily]
when 'Suse', 'RedHat', 'CentOS'
it { is_expected.to contain_class('php::global') }
Expand Down Expand Up @@ -127,7 +127,7 @@
end
end

describe 'when called with package_prefix parameter' do # rubocop: disable RSpec/EmptyExampleGroup
describe 'when called with package_prefix parameter' do
package_prefix = 'myphp-'
let(:params) { { package_prefix: package_prefix } }

Expand Down
2 changes: 1 addition & 1 deletion spec/defines/config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

describe 'php::config' do
on_supported_os.each do |os, facts|
context "on #{os}" do # rubocop:disable RSpec/EmptyExampleGroup
context "on #{os}" do
let :facts do
facts
end
Expand Down
6 changes: 3 additions & 3 deletions spec/defines/fpm_pool_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

describe 'php::fpm::pool' do
on_supported_os.each do |os, facts|
context "on #{os}" do # rubocop: disable RSpec/EmptyExampleGroup
context "on #{os}" do
let :facts do
facts
end
let(:pre_condition) { 'include php' }

case facts[:os]['name']
when 'Debian'
context 'plain config' do # rubocop: disable RSpec/EmptyExampleGroup
context 'plain config' do
let(:title) { 'unique-name' }
let(:params) { {} }

Expand All @@ -26,7 +26,7 @@
end
end
when 'Ubuntu'
context 'plain config' do # rubocop: disable RSpec/EmptyExampleGroup
context 'plain config' do
let(:title) { 'unique-name' }
let(:params) { {} }

Expand Down

0 comments on commit 2d6519e

Please sign in to comment.