mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-26 20:08:51 +01:00
fix test where month+1 resulted in an error for december
This commit is contained in:
parent
ba09aab89c
commit
f3d7fac2a4
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue