mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-07 09:48:50 +01:00
Fix #1722
This commit is contained in:
parent
31217762a0
commit
d7fbcb10c4
7 changed files with 10 additions and 7 deletions
|
|
@ -208,7 +208,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