Sha256: b547e29b8e2c7a8c79d810bdfded4b5eff5c2e3fb9c8c7b94faa6e15b4b5cf39
Contents?: true
Size: 524 Bytes
Versions: 83
Compression:
Stored size: 524 Bytes
Contents
require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../../../spec_helper' describe "File::Stat#gid" do before :each do @file = tmp('i_exist') File.open(@file,'w'){|f| f.write 'rubinius'} File.chown(nil, Process.gid, @file) end after :each do File.delete(@file) if File.exist?(@file) end it "should be able to determine the group owner through a File::Stat object" do st = File.stat(@file) st.gid.is_a?(Integer).should == true st.gid.should == Process.gid end end
Version data entries
83 entries across 83 versions & 1 rubygems