Sha256: 8bd5d3c9e0baca13e84ff63364e109ea0a6a8ae2c9a3ef0f28ea0f4367b47c76

Contents?: true

Size: 220 Bytes

Versions: 12

Compression:

Stored size: 220 Bytes

Contents

require File.join(File.dirname(__FILE__), %w[.. spec_helper])

describe DateTime do    
  it "should convert a date to date_id correctly" do
    DateTime.parse( "2010-01-01" ).to_date_id.should == 20100101
  end
    
end

Version data entries

12 entries across 12 versions & 1 rubygems

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