Need to save todo after updating state from project. Fixes #834.

This commit is contained in:
Eric Allen 2009-02-01 15:25:09 -05:00
parent 2ee84b8162
commit e40b8ecbcf
2 changed files with 2 additions and 1 deletions

View file

@ -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