fix test where month+1 resulted in an error for december

This commit is contained in:
Reinier Balt 2008-12-03 10:22:43 +01:00
parent ba09aab89c
commit f3d7fac2a4

View file

@ -450,7 +450,7 @@ class TodosControllerTest < Test::Rails::TestCase
# check that the new_todo is in the tickler to show next month
assert !new_todo.show_from.nil?
assert_equal Time.utc(today.year, today.month+1, today.day), new_todo.show_from
assert_equal Time.utc(today.year, today.month, today.day)+1.month, new_todo.show_from
end
def test_check_for_next_todo