mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-03 14:31:47 +01:00
Fix #1722
This commit is contained in:
parent
31217762a0
commit
d7fbcb10c4
7 changed files with 10 additions and 7 deletions
|
|
@ -53,7 +53,7 @@ module RecurringTodos
|
|||
assert_equal_dmy @today, due_date
|
||||
|
||||
# when the last todo was completed today, the next todo is due tomorrow
|
||||
due_date =@every_day.get_due_date(@today)
|
||||
due_date = @every_day.get_due_date(@today)
|
||||
assert_equal @tomorrow, due_date
|
||||
|
||||
# do something every 14 days
|
||||
|
|
|
|||
|
|
@ -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