mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-07 08:21:47 +01:00
Remove 'project_hidden' state
Compute it using project/context state Notable change: todo.hidden? now also returns true if the todo is completed
This commit is contained in:
parent
543f49ed8a
commit
ed3bca22a4
12 changed files with 66 additions and 106 deletions
|
|
@ -381,7 +381,7 @@ class TodosControllerTest < ActionController::TestCase
|
|||
assert p.reload().hidden?
|
||||
todo = p.todos.first
|
||||
|
||||
assert todo.project_hidden?, "todo should be project_hidden"
|
||||
assert todo.hidden?, 'todo should be hidden'
|
||||
|
||||
# clear project from todo: the todo should be unhidden
|
||||
xhr :post, :update, :id => todo.id, :_source_view => 'todo', "project_name"=>"", "todo"=>{}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue