nginx-formula/test/integration/passenger/controls/install.rb

29 lines
684 B
Ruby
Raw Normal View History

# frozen_string_literal: true
control 'Nginx package' do
title 'should be installed'
describe package('nginx') do
it { should be_installed }
end
end
control 'Passenger packages' do
title 'should be installed'
# Override by OS Family
passenger_mod_pkg = case platform[:family]
when 'redhat', 'centos', 'fedora'
'nginx-mod-http-passenger'
when 'debian', 'ubuntu'
'libnginx-mod-http-passenger'
end
describe package('passenger') do
it { should be_installed }
end
describe package(passenger_mod_pkg) do
it { should be_installed }
end
end