diff --git a/test/integration/default/controls/config_spec.rb b/test/integration/default/controls/config_spec.rb index fee1f2d..c20b7ee 100644 --- a/test/integration/default/controls/config_spec.rb +++ b/test/integration/default/controls/config_spec.rb @@ -1,6 +1,9 @@ +# frozen_string_literal: true + control 'Php configuration' do title 'should match desired lines' + # rubocop:disable Metrics/MethodLength, Metrics/AbcSize def test_debian describe file('/etc/php/5.6/fpm/pool.d/radius-admin.conf') do its('content') { should include '[radius-admin]' } @@ -20,12 +23,11 @@ control 'Php configuration' do its('content') { should include 'date.timezone = Europe/Paris' } end end + # rubocop:enable Metrics/MethodLength, Metrics/AbcSize - def test_redhat - end + def test_redhat; end - def test_suse - end + def test_suse; end case os[:family] when 'debian' diff --git a/test/integration/default/controls/package_spec.rb b/test/integration/default/controls/package_spec.rb index e3b56c6..e61dc6b 100644 --- a/test/integration/default/controls/package_spec.rb +++ b/test/integration/default/controls/package_spec.rb @@ -1,6 +1,9 @@ +# frozen_string_literal: true + control 'Php package' do title 'should be installed' + # rubocop:disable Metrics/MethodLength, Metrics/AbcSize def test_debian describe package('php-imagick') do it { should be_installed } @@ -18,7 +21,6 @@ control 'Php package' do bz2 cli curl fpm gd imap intl mbstring mysql readline xml zip ].each do |pkg| - describe package("php5.6-#{pkg}") do it { should be_installed } end @@ -28,6 +30,7 @@ control 'Php package' do end end end + # rubocop:enable Metrics/MethodLength, Metrics/AbcSize def test_redhat describe package('php') do diff --git a/test/integration/default/controls/service_spec.rb b/test/integration/default/controls/service_spec.rb index d1932ab..3e1ba7b 100644 --- a/test/integration/default/controls/service_spec.rb +++ b/test/integration/default/controls/service_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + control 'Php service' do title 'should be running and enabled' @@ -13,11 +15,9 @@ control 'Php service' do end end - def test_redhat - end + def test_redhat; end - def test_suse - end + def test_suse; end case os[:family] when 'debian'