inspec/test
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
..
cookbooks/os_prepare Add wildcard support to Utils::FindFiles (#2159) 2017-09-23 09:17:34 +02:00
functional Support PAX-formatted tar files, standardize file lists (#2225) 2017-10-10 10:36:57 +01:00
integration Extend Windows ACL matchers (#1744) 2017-10-17 15:01:51 +02:00
unit cpan resource: check for Perl module installation (#2254) 2017-10-25 16:01:26 +02:00
docker_run.rb travis experiment: lower docker concurrency 2016-08-10 12:52:21 +01:00
docker_test.rb Load all dependent libraries, even if include_context isn't called 2016-09-04 20:55:20 +02:00
helper.rb cpan resource: check for Perl module installation (#2254) 2017-10-25 16:01:26 +02:00