mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-20 17:20:12 +01:00
Need to save todo after updating state from project. Fixes #834.
This commit is contained in:
parent
2ee84b8162
commit
e40b8ecbcf
2 changed files with 2 additions and 1 deletions
|
|
@ -516,7 +516,7 @@ class TodosControllerTest < Test::Rails::TestCase
|
|||
assert_equal "project_hidden", todo.state
|
||||
|
||||
# clear project from todo: the todo should be unhidden
|
||||
xhr :post, :update, :id => 1, :_source_view => 'todo', "project_name"=>"None", "todo"=>{}
|
||||
xhr :post, :update, :id => 5, :_source_view => 'todo', "project_name"=>"None", "todo"=>{}
|
||||
todo.reload()
|
||||
assert_equal "active", todo.state
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue