Sha256: af82902645deb48e3780ad458c08ff6427b3e977cee30068678a6f92bc594e87
Contents?: true
Size: 566 Bytes
Versions: 14
Compression:
Stored size: 566 Bytes
Contents
# Copyright (c) 2009 Michael Fellinger m.fellinger@gmail.com # All files in this distribution are subject to the terms of the Ruby license. require File.expand_path('../../../../lib/ramaze/spec/helper/snippets', __FILE__) describe "Numeric time extensions" do it 'should provide times in the past' do 3.days.ago.to_i.should == (Time.now - 3*24*60*60).to_i 2.months.ago.to_i.should == (Time.now - 2*30*24*60*60).to_i end it 'should provide times in the future' do 2.weeks.from_now.to_i.should == (Time.now + 2*7*24*60*60).to_i end end
Version data entries
14 entries across 14 versions & 3 rubygems