diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-05-29 08:29:33 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-05-29 08:29:33 +0000 |
commit | ae242b0d23df2893f398fb2ec97ba502b7bf361b (patch) | |
tree | 34e7a057cc41396490c610f70be35b078aad9434 | |
parent | 690d6e204a9979a571b8aa9d3f331ff65ff30f56 (diff) | |
download | rails-ae242b0d23df2893f398fb2ec97ba502b7bf361b.tar.gz rails-ae242b0d23df2893f398fb2ec97ba502b7bf361b.tar.bz2 rails-ae242b0d23df2893f398fb2ec97ba502b7bf361b.zip |
Workaround test isolation failure with Task.attr_protected :starting.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6892 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | activerecord/test/date_time_test.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/activerecord/test/date_time_test.rb b/activerecord/test/date_time_test.rb index 340026ecc3..2624fa0a78 100644 --- a/activerecord/test/date_time_test.rb +++ b/activerecord/test/date_time_test.rb @@ -5,7 +5,11 @@ require 'fixtures/task' class DateTimeTest < Test::Unit::TestCase def test_saves_both_date_and_time now = 200.years.ago.to_datetime - task = Task.create!(:starting => now) + + task = Task.new + task.starting = now + task.save! + assert_equal now, Task.find(task.id).starting end |