inspec/lib
Markus Grobelin c626dfdbd9 cpan resource: check for Perl module installation (#2254)
* Added CPAN resource to check Perl modules

control 'cpan-1' do
  impact 1.0
  desc '
    Ensure Perl modules DBI and DBD::Pg are installed.
  '

  describe cpan('DBI') do
    it { should be_installed }
  end

  describe cpan('DBD::Pg') do
    it { should be_installed }
    its('version') { should cmp >= '3.0' }
  end
end

Signed-off-by: Markus Grobelin <grobi@koppzu.de>

* cpan resource: fixed unit test for non-installed module

Signed-off-by: Markus Grobelin <grobi@koppzu.de>
2017-10-25 16:01:26 +02:00
..
bundles Add inspec habitat profile setup command (#2239) 2017-10-17 14:53:41 +02:00
fetchers Don't send HTTP headers that have nil values (#1948) 2017-06-21 19:09:13 -05:00
inspec cpan resource: check for Perl module installation (#2254) 2017-10-25 16:01:26 +02:00
matchers Enhance cmp matcher to work with symbols, fix file documentation (#2224) 2017-10-07 12:28:07 +02:00
resources cpan resource: check for Perl module installation (#2254) 2017-10-25 16:01:26 +02:00
source_readers Source reader should not hand back files with nil contents (#2003) 2017-07-11 21:33:55 +02:00
utils Support symbol keys in ObjectTraverser (#2221) 2017-10-06 19:24:31 +02:00
inspec.rb Remove any "All Rights Reserved" references (#1969) 2017-06-28 04:14:19 -07:00