Sha256: 2d2ef626bc1b3538ca2cb409773701a5a8e9409bf74e2c28d1c8703bc539199a

Contents?: true

Size: 586 Bytes

Versions: 14

Compression:

Stored size: 586 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe MList, 'date formats' do
  specify 'mlist_reply_timestamp should handle single digit days and months' do
    Time.local(2009, 2, 3, 7).to_s(:mlist_reply_timestamp).should == 'Tue, Feb 3, 2009 at 7:00 AM'
  end
  
  specify 'mlist_reply_timestamp should handle double digit days and months' do
    Time.local(2009, 2, 13, 11).to_s(:mlist_reply_timestamp).should == 'Fri, Feb 13, 2009 at 11:00 AM'
    Time.local(2009, 2, 13, 14).to_s(:mlist_reply_timestamp).should == 'Fri, Feb 13, 2009 at 2:00 PM'
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
mlist-0.1.23 spec/integration/date_formats_spec.rb
mlist-0.1.22 spec/integration/date_formats_spec.rb
mlist-0.1.21 spec/integration/date_formats_spec.rb
mlist-0.1.20 spec/integration/date_formats_spec.rb
mlist-0.1.19 spec/integration/date_formats_spec.rb
mlist-0.1.18 spec/integration/date_formats_spec.rb
mlist-0.1.17 spec/integration/date_formats_spec.rb
mlist-0.1.16 spec/integration/date_formats_spec.rb
mlist-0.1.14 spec/integration/date_formats_spec.rb
mlist-0.1.13 spec/integration/date_formats_spec.rb
mlist-0.1.12 spec/integration/date_formats_spec.rb
mlist-0.1.11 spec/integration/date_formats_spec.rb
mlist-0.1.10 spec/integration/date_formats_spec.rb
mlist-0.1.9 spec/integration/date_formats_spec.rb