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