inspec/test/unit/mock
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
..
cmd Fix installed? check for gem resource 2017-05-22 15:34:01 -05:00
files add rabbitmq config resource 2017-04-12 20:51:12 +02:00
profiles throw an error during inspec check if the version is not correct 2017-05-18 09:13:37 -04:00