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

Version Path
rhodes-3.3.5 spec/framework_spec/app/spec/core/file/stat/mode_spec.rb
rhodes-3.3.4 spec/framework_spec/app/spec/core/file/stat/mode_spec.rb
rhodes-3.3.3 spec/framework_spec/app/spec/core/file/stat/mode_spec.rb
rhodes-3.3.3.beta.4 spec/framework_spec/app/spec/core/file/stat/mode_spec.rb
rhodes-3.3.3.beta.3 spec/framework_spec/app/spec/core/file/stat/mode_spec.rb
rhodes-3.3.3.beta.2 spec/framework_spec/app/spec/core/file/stat/mode_spec.rb
rhodes-3.3.3.beta.1 spec/framework_spec/app/spec/core/file/stat/mode_spec.rb
rhodes-3.3.2 spec/framework_spec/app/spec/core/file/stat/mode_spec.rb
rhodes-3.3.2.beta.7 spec/framework_spec/app/spec/core/file/stat/mode_spec.rb
rhodes-3.3.2.beta.6 spec/framework_spec/app/spec/core/file/stat/mode_spec.rb
rhodes-3.3.2.beta.5 spec/framework_spec/app/spec/core/file/stat/mode_spec.rb
rhodes-3.3.2.beta.4 spec/framework_spec/app/spec/core/file/stat/mode_spec.rb
rhodes-3.3.2.beta.3 spec/framework_spec/app/spec/core/file/stat/mode_spec.rb
rhodes-3.3.2.beta.2 spec/framework_spec/app/spec/core/file/stat/mode_spec.rb
rhodes-3.3.2.beta.1 spec/framework_spec/app/spec/core/file/stat/mode_spec.rb
rhodes-3.3.1 spec/framework_spec/app/spec/core/file/stat/mode_spec.rb
rhodes-3.3.0 spec/framework_spec/app/spec/core/file/stat/mode_spec.rb
rhodes-3.3.0.beta.3 spec/framework_spec/app/spec/core/file/stat/mode_spec.rb
rhodes-3.3.0.beta.2 spec/framework_spec/app/spec/core/file/stat/mode_spec.rb
rhodes-3.3.0.beta.1 spec/framework_spec/app/spec/core/file/stat/mode_spec.rb