mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-09 00:54:21 +01:00
Use Todos::Calendar in the view
This commit is contained in:
parent
fb71441436
commit
6b8e745234
3 changed files with 11 additions and 20 deletions
|
|
@ -916,10 +916,10 @@ class TodosControllerTest < ActionController::TestCase
|
|||
|
||||
assert_equal "calendar", assigns['source_view']
|
||||
assert_equal projects, assigns['projects']
|
||||
assert_equal due_today, assigns['due_today']
|
||||
assert_equal [], assigns['due_this_week']
|
||||
assert_equal due_next_week, assigns['due_next_week']
|
||||
assert_equal [], assigns['due_this_month']
|
||||
assert_equal due_today, assigns['calendar'].due_today
|
||||
assert_equal [], assigns['calendar'].due_this_week
|
||||
assert_equal due_next_week, assigns['calendar'].due_next_week
|
||||
assert_equal [], assigns['calendar'].due_this_month
|
||||
assert_equal 8, assigns['count']
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue