packages-formula/test/integration/default/controls/gems_spec.rb
Niels Abspoel 75526cce61
feat(centos-8): added RedHat,CentOS and Oracle linux 8 support
Add centos 8 to osfingermap
add oracle linux 8 to osfingermap
moved RedHat/CentOS to osmap and osfingermap to accomodate changes in
package provider versionlock
enable centos-centos-8-master-py3
remove hardcoded packages
yum-plugin-versionlock was hardcoded for all redhat versions, which
is removed with centos 8.
the package alien has a depency on debhelper which is broken in Centos-8
add share folder testing

Co-authored-by: Imran Iqbal <myii@users.noreply.github.com>
2021-02-09 20:12:21 +01:00

35 lines
573 B
Ruby

# frozen_string_literal: true
### WANTED/REQUIRED
control 'Wanted/Required gems' do
title 'should be installed'
wanted = %w[
progressbar
minitest
]
case platform[:name]
when 'centos', 'amazon', 'oracle'
wanted.delete('minitest')
end
wanted.each do |p|
describe gem(p) do
it { should be_installed }
end
end
end
### UNWANTED
control 'Unwanted gems' do
title 'should be uninstalled'
%w[
diff-lcs
kwalify
kitchen-vagrant
].each do |p|
describe gem(p) do
it { should_not be_installed }
end
end
end