Skip to content
Snippets Groups Projects
pkgs_spec.rb 477 B
Newer Older
  • Learn to ignore specific revisions
  • # frozen_string_literal: true
    
    
    pkgs =
      case system.platform[:name]
      when 'arch'
        %w[salt]
      when /bsd$/
    
      when 'mac_os_x'
        %w[salt saltstack]
    
    control 'salt packages' do
      title 'should be installed'
    
    
        describe package(p) do
          it { should be_installed }
    
          its('version') { should match(/^#{input('saltmajorversion')}/) }