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