Sha256: f67aeba73018843c8471e9b9b1a4e50cfab60896e1433cfaf949890dfa9087ec
Contents?: true
Size: 469 Bytes
Versions: 33
Compression:
Stored size: 469 Bytes
Contents
require File.expand_path('../../../../spec_helper', __FILE__) describe "File::Stat#mode" do before :each do @file = tmp('i_exist') touch(@file) { |f| f.write "rubinius" } File.chmod(0755, @file) end after :each do rm_r @file end if ( System.get_property('platform') != 'WINDOWS' ) it "returns the mode of a File::Stat object" do st = File.stat(@file) st.mode.is_a?(Integer).should == true st.mode.should == 33261 end end end
Version data entries
33 entries across 33 versions & 1 rubygems