template-formula/test/integration/default/controls/packages_spec.rb
Dafydd Jones 2e8ded6565 refactor: improve reusability using an unique keyword TEMPLATE
BREAKING CHANGE: changed all state names and ids
2019-12-04 23:47:41 +00:00

13 lines
292 B
Ruby

# frozen_string_literal: true
# Overide by OS
package_name = 'bash'
package_name = 'cronie' if (os[:name] == 'centos') && os[:release].start_with?('6')
control 'TEMPLATE package' do
title 'should be installed'
describe package(package_name) do
it { should be_installed }
end
end