require_relative '../../../spec_helper'

describe "File::Stat#ctime" 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 ctime of a File::Stat object" do
    st = File.stat(@file)
    st.ctime.should.is_a?(Time)
    st.ctime.should <= Time.now
  end
end
