mirror of
https://github.com/inspec/inspec
synced 2025-02-16 22:18:38 +00:00
CFINSPEC-89: Add unit test for have_gid matcher
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
This commit is contained in:
parent
2f7c65d1a4
commit
a8aa8f4b29
1 changed files with 12 additions and 0 deletions
|
@ -130,4 +130,16 @@ describe "Inspec::Resources::Group" do
|
||||||
_(resource.exists?).must_equal true
|
_(resource.exists?).must_equal true
|
||||||
_(resource.members).must_equal ""
|
_(resource.members).must_equal ""
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# ubuntu
|
||||||
|
it "verify have_gid matcher on ubuntu" do
|
||||||
|
resource = MockLoader.new(:ubuntu).load_resource("group", "root")
|
||||||
|
_(resource.has_gid?(0)).must_equal true
|
||||||
|
end
|
||||||
|
|
||||||
|
# freebsd
|
||||||
|
it "verify have_gid matcher on freebsd" do
|
||||||
|
resource = MockLoader.new(:freebsd10).load_resource("group", "root")
|
||||||
|
_(resource.has_gid?(0)).must_equal true
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue