Sha256: 3e070c4fca207e55b48bc36be09de087928d37c0e9fd22ea8dd6d6bcf017bfbb
Contents?: true
Size: 467 Bytes
Versions: 83
Compression:
Stored size: 467 Bytes
Contents
require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../../../spec_helper' describe "File::Stat#mtime" do before :each do @file = tmp('i_exist') File.open(@file,'w'){|f| f.write 'rubinius'} end after :each do File.delete(@file) if File.exist?(@file) end it "should be able to determine the mtime on a File::Stat object" do st = File.stat(@file) st.mtime.class.should == Time st.mtime.should <= Time.now end end
Version data entries
83 entries across 83 versions & 1 rubygems