remove dup method users, use usernames, fix example

This commit is contained in:
Christoph Hartmann 2015-10-31 23:07:53 +01:00 committed by Dominik Richter
parent bc15c857b5
commit 4a676f55c3

View file

@ -16,8 +16,8 @@
# usage:
#
# describe passwd do
# its(:usernames) { should eq 'root' }
# its(:uids) { should eq 1 }
# its(:usernames) { should eq ['root'] }
# its(:uids) { should eq [0] }
# end
#
# describe passwd.uid(0) do
@ -63,12 +63,6 @@ class Passwd < Inspec.resource(1)
map_data('gid')
end
def users
@parsed.map {|x|
x['name']
}
end
def to_s
'/etc/passwd'
end