Skip to content

Commit

Permalink
cleanup php7 acceptance test
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Mar 6, 2018
1 parent 6e13e94 commit 761eec2
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions spec/acceptance/php_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 761eec2

Please sign in to comment.