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

Version Path
wackamole-0.1.4 spec/core_ext/time_spec.rb
wackamole-0.1.3 spec/core_ext/time_spec.rb
wackamole-0.1.2 spec/core_ext/time_spec.rb
wackamole-0.0.9 spec/core_ext/time_spec.rb
wackamole-0.0.8 spec/core_ext/time_spec.rb
wackamole-0.0.7 spec/core_ext/time_spec.rb
wackamole-0.0.6 spec/core_ext/time_spec.rb
wackamole-0.0.5 spec/core_ext/time_spec.rb
wackamole-0.0.4 spec/core_ext/time_spec.rb
wackamole-0.0.3 spec/core_ext/time_spec.rb
wackamole-0.0.2 spec/core_ext/time_spec.rb
wackamole-0.0.1 spec/core_ext/time_spec.rb