Sha256: 35121eb3843038b2d09c89cf632b646d4e14deb76ac1e3850053ac35887a1956
Contents?: true
Size: 398 Bytes
Versions: 52
Compression:
Stored size: 398 Bytes
Contents
require File.expand_path('../../../../spec_helper', __FILE__) describe "File::Stat#uid" do before :each do @file = tmp('i_exist') touch(@file) { |f| f.write "rubinius" } end after :each do rm_r @file end it "returns the owner attribute of 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
52 entries across 52 versions & 2 rubygems