mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-27 12:28:48 +01:00
Fixed a latent time zone bug in tests.
I created a new method accessible to all tests for forcing a user to the local time zone. The code was cribbed from Rails's rake tasks time:zones:local.
This commit is contained in:
parent
fe52c0ab3c
commit
00da0b36aa
2 changed files with 18 additions and 2 deletions
|
|
@ -426,6 +426,7 @@ class TodosControllerTest < ActionController::TestCase
|
|||
|
||||
# link todo_1 and recurring_todo_1
|
||||
recurring_todo_1 = RecurringTodo.find(1)
|
||||
set_user_to_current_time_zone(recurring_todo_1.user)
|
||||
todo_1 = Todo.find_by_recurring_todo_id(1)
|
||||
today = Time.now.at_midnight
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue