Updated RubySpec source to 55122684.
[rbx.git] / spec / frozen / 1.8 / core / file / stat / blocks_spec.rb
blob64e268a6d98bad0809cb8b139f77362ca1b4bd3a
1 require File.dirname(__FILE__) + '/../../../spec_helper'
3 describe "File::Stat#blocks" do
4   before :each do
5     @file = tmp('i_exist')
6     File.open(@file,'w'){|f| f.write 'rubinius'}
7   end
9   after :each do
10     File.delete(@file) if File.exist?(@file)
11   end
12   
13   it "should be able to determine the blocks on a File::Stat object" do
14     st = File.stat(@file)
15     st.blocks.is_a?(Integer).should == true
16     st.blocks.should > 0
17   end
18 end