inspec/test
Keith Walters 215ef38ee9 Fix installed? check for gem resource
The gem resource used to determine if a gem is installed based on the exit
status of the `gem` command, however that command will return zero
if the package was found or not. This patch checks to ensure that the
`gem list` command actually includes the gem name or is empty to
determine if the gem is in fact installed.

If the gem command returns something other than a `0` exit code, then
it'll skip the resource.

Signed-off-by: Keith Walters <keith.walters@cattywamp.us>
2017-05-22 15:34:01 -05:00
..
cookbooks/os_prepare Docker resource (#1566) 2017-04-24 10:47:03 -04:00
functional Added functional tests for inspec version --format json 2017-05-17 09:41:38 -04:00
integration/default Docker resource (#1566) 2017-04-24 10:47:03 -04:00
resource Add FreeBSD support for ZFS datasets and pools 2017-02-22 10:29:49 -07:00
unit Fix installed? check for gem resource 2017-05-22 15:34:01 -05: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 Fix installed? check for gem resource 2017-05-22 15:34:01 -05:00
test-extra.yaml split up tests for travis 2015-09-23 01:51:51 +02:00
test.yaml split up tests for travis 2015-09-23 01:51:51 +02:00