mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-22 02:00:12 +01:00
move recurrence text helpers into patterns. move next_date calculation into
respective models
This commit is contained in:
parent
d8507bf8b7
commit
b84adfc172
13 changed files with 291 additions and 289 deletions
|
|
@ -40,6 +40,14 @@ module RecurringTodos
|
|||
assert !rt.valid?, "missing selected days in every_day"
|
||||
end
|
||||
|
||||
def test_pattern_text
|
||||
rt = @admin.recurring_todos.where(recurring_period: 'weekly').first
|
||||
assert_equal "every 2 weeks", rt.recurrence_pattern
|
||||
|
||||
rt.every_other1 = 1
|
||||
assert_equal "weekly", rt.recurrence_pattern
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue