1 require 'abstract_unit'
2 require 'fixtures/topic'
3 require 'fixtures/task'
5 class DateTimeTest < Test::Unit::TestCase
6 def test_saves_both_date_and_time
7 now = 200.years.ago.to_datetime
13 assert_equal now, Task.find(task.id).starting.to_datetime
16 def test_assign_empty_date_time
20 assert_nil task.starting
21 assert_nil task.ending
24 def test_assign_empty_date
27 assert_nil topic.last_read
30 def test_assign_empty_time
33 assert_nil topic.bonus_time