Sha256: 4c677a013f8356bead7fe16e3c10475b13390c23e3911c2cf8b94358d20372ad
Contents?: true
Size: 385 Bytes
Versions: 52
Compression:
Stored size: 385 Bytes
Contents
require File.expand_path('../../../../spec_helper', __FILE__) describe "File::Stat#mtime" do before :each do @file = tmp('i_exist') touch(@file) { |f| f.write "rubinius" } end after :each do rm_r @file end it "returns the mtime of a File::Stat object" do st = File.stat(@file) st.mtime.should be_kind_of(Time) st.mtime.should <= Time.now end end
Version data entries
52 entries across 52 versions & 2 rubygems