mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-01 14:58:50 +01:00
Fix #1722
This commit is contained in:
parent
ef33ce5bbc
commit
ed9063bffa
7 changed files with 10 additions and 7 deletions
|
|
@ -207,7 +207,7 @@ class UserTest < ActiveSupport::TestCase
|
|||
def test_find_and_activate_deferred_todos_that_are_ready
|
||||
assert_equal 1, @admin_user.deferred_todos.count
|
||||
@admin_user.deferred_todos[0].show_from = Time.now.utc - 5.seconds
|
||||
@admin_user.deferred_todos[0].save
|
||||
@admin_user.deferred_todos[0].save(:validate => false)
|
||||
@admin_user.deferred_todos.reload
|
||||
@admin_user.deferred_todos.find_and_activate_ready
|
||||
@admin_user.deferred_todos.reload
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue