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