CFINSPEC-89: Add have_gid matcher

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
This commit is contained in:
Sonu Saha 2022-04-13 16:50:10 +05:30
parent f00b3341dd
commit 2f7c65d1a4

View file

@ -145,6 +145,11 @@ module Inspec::Resources
true
end
# matcher equivalent to gid property.
def has_gid?(gid_value)
gid_value == gid
end
def to_s
"Group #{@group}"
end