mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-23 18:50:12 +01:00
rename DateUtils to UserTime
This commit is contained in:
parent
6c695aa61a
commit
8512e8db3b
6 changed files with 18 additions and 9 deletions
|
|
@ -119,7 +119,7 @@ class RecurringTodosControllerTest < ActionController::TestCase
|
|||
# due date should be the target_date
|
||||
user = users(:admin_user)
|
||||
target_date = Date.new(target_date.year, target_date.month, target_date.day)
|
||||
assert_equal DateUtils.midnight_for(user.prefs, target_date), new_todo.due
|
||||
assert_equal UserTime.new(user).midnight(target_date), new_todo.due
|
||||
|
||||
# show_from should be nil since now+4.days-10.days is in the past
|
||||
assert_equal nil, new_todo.show_from
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue