Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #10073: test_datetime.patch

File test_datetime.patch, 446 bytes (added by lawrence, 1 year ago)
  • activerecord/test/date_time_test.rb

    old new  
    44 
    55class DateTimeTest < Test::Unit::TestCase 
    66  def test_saves_both_date_and_time 
    7     now = 200.years.ago.to_datetime 
     7    now = 50.years.ago.to_datetime 
    88 
    99    task = Task.new 
    1010    task.starting = now