test/etc/test_etc.rb in etc-0.2.1 vs test/etc/test_etc.rb in etc-1.0.0

- old
+ new

@@ -95,15 +95,15 @@ assert_include(s, [g.name, g.gid]) end end def test_getgrnam - groups = {} + groups = Hash.new {[]} Etc.group do |s| - groups[s.name] ||= s.gid unless /\A\+/ =~ s.name + groups[s.name] |= [s.gid] unless /\A\+/ =~ s.name end groups.each_pair do |n, s| - assert_equal(s, Etc.getgrnam(n).gid) + assert_include(s, Etc.getgrnam(n).gid) end end def test_group_with_low_level_api a = []