0
0
mirror of https://github.com/saltstack-formulas/salt-formula.git synced 2024-12-11 12:24:25 +01:00
salt-formula/test/integration/v201902-py2/controls/pkgs_spec.rb
Imran Iqbal b2b1fee370
test(pkgs_spec): simplify using match (trigger: update for suse)
* https://travis-ci.org/github/myii/salt-formula/jobs/692337807#L2366-L2381
  - `opensuse` now has `3000.3` available
* Simplification is useful anyway, even without this (could still use `case`)
2020-06-01 01:52:08 +01:00

18 lines
298 B
Ruby

# frozen_string_literal: true
control 'salt packages' do
title 'should be installed'
version = '2019.2.5'
%w[
salt-master
salt-minion
].each do |p|
describe package(p) do
it { should be_installed }
its('version') { should match(/^#{version}/) }
end
end
end