From f3d7fac2a4e602c21c754770903217c0a5035629 Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Wed, 3 Dec 2008 10:22:43 +0100 Subject: [PATCH] fix test where month+1 resulted in an error for december --- test/functional/todos_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/todos_controller_test.rb b/test/functional/todos_controller_test.rb index b8d7aef3..832aa764 100644 --- a/test/functional/todos_controller_test.rb +++ b/test/functional/todos_controller_test.rb @@ -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