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