Sha256: 85a6d0890c507b723154ca4eb60ff0effaea9c4518c1bd73f49129d03c3105a9
Contents?: true
Size: 644 Bytes
Versions: 4
Compression:
Stored size: 644 Bytes
Contents
require 'etc' describe "Struct::Group" do platform_is_not :windows do before :all do @g = Etc.getgrgid(`id -g`.strip.to_i) end it "returns group name" do @g.name.should == `id -gn`.strip end it "returns group password" do @g.passwd.is_a?(String).should == true end it "returns group id" do @g.gid.should == `id -g`.strip.to_i end it "returns an array of users belonging to the group" do @g.mem.is_a?(Array).should == true end it "can be compared to another object" do (@g == nil).should == false (@g == Object.new).should == false end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rubysl-etc-3.0 | spec/struct_group_spec.rb |
rubysl-etc-1.0.1 | spec/struct_group_spec.rb |
rubysl-etc-2.0.3 | spec/struct_group_spec.rb |
rubysl-etc-1.0.0 | spec/struct_group_spec.rb |