inspec/test/unit/mock
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
..
cmd cpan resource: check for Perl module installation (#2254) 2017-10-25 16:01:26 +02:00
files Support symbol keys in ObjectTraverser (#2221) 2017-10-06 19:24:31 +02:00
profiles Modify DirProvider to allow special characters (#2174) 2017-09-23 09:16:25 +02:00