diff options
Diffstat (limited to 'activerecord/test')
-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 |