diff --git a/spec/acceptance/php_spec.rb b/spec/acceptance/php_spec.rb index 95b99686..36bc845b 100644 --- a/spec/acceptance/php_spec.rb +++ b/spec/acceptance/php_spec.rb @@ -10,18 +10,22 @@ end case default[:platform] - when %r{16.04} - describe package('php7.0-fpm') do - it { is_expected.to be_installed } - end - when %r{14.04} - describe package('php5-fpm') do - it { is_expected.to be_installed } - end - when %(7) - describe package('php-fpm') do - it { is_expected.to be_installed } - end + when %r{ubuntu-16.04} + packagename = 'php7.0-fpm' + when %r{ubuntu-14.04} + packagename = 'php5-fpm' + when %r{el} + packagename = 'php-fpm' + when %r{debian} + packagename = 'php5-fpm' + end + describe package(packagename) do + it { is_expected.to be_installed } + end + + describe service(packagename) do + it { is_expected.to be_running } + it { is_expected.to be_enabled } end end end