Sha256: bdf16b8ad0431bb90dc0ac21ccafe5d30d63ae107aa667d4f4639c4cc54a59e4
Contents?: true
Size: 529 Bytes
Versions: 19
Compression:
Stored size: 529 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' ) && ( System.get_property('platform') != 'WINDOWS_DESKTOP' ) 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
19 entries across 19 versions & 2 rubygems