mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-18 00:00:12 +01:00
fix test
This commit is contained in:
parent
cd09cce7a4
commit
b788194f8d
1 changed files with 2 additions and 2 deletions
|
|
@ -54,12 +54,12 @@ module RecurringTodos
|
||||||
|
|
||||||
# when the last todo was completed today, the next todo is due tomorrow
|
# 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
|
assert_equal @tomorrow.at_midnight, due_date
|
||||||
|
|
||||||
# do something every 14 days
|
# do something every 14 days
|
||||||
@every_day.every_other1=14
|
@every_day.every_other1=14
|
||||||
due_date = @every_day.get_due_date(@today)
|
due_date = @every_day.get_due_date(@today)
|
||||||
assert_equal @today+14.days, due_date
|
assert_equal (@today+14.days).at_midnight, due_date
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_only_work_days_skips_weekend
|
def test_only_work_days_skips_weekend
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue