Sha256: 73833c64171a05bdc496256e04f46d6e97293d2767b6966c50843fe7ba5e7dd5
Contents?: true
Size: 357 Bytes
Versions: 12
Compression:
Stored size: 357 Bytes
Contents
require File.join(File.dirname(__FILE__), %w[.. spec_helper]) describe Time do it "should convert a time to date_id correctly" do Chronic.parse( "2010-01-01 09:30:59" ).to_date_id.should == 20100101 end it "should convert a time to time_id correctly" do Chronic.parse( "2010-01-01 10:30:59" ).to_time_id.should == "103059" end end
Version data entries
12 entries across 12 versions & 1 rubygems