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

Changeset 6892

Show
Ignore:
Timestamp:
05/29/07 08:29:33 (1 year ago)
Author:
bitsweat
Message:

Workaround test isolation failure with Task.attr_protected :starting.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/activerecord/test/date_time_test.rb

    r6878 r6892  
    66  def test_saves_both_date_and_time 
    77    now = 200.years.ago.to_datetime 
    8     task = Task.create!(:starting => now) 
     8 
     9    task = Task.new 
     10    task.starting = now 
     11    task.save! 
     12 
    913    assert_equal now, Task.find(task.id).starting 
    1014  end