mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-24 03:00:12 +01:00
Fixed a small error in tests
Signed-off-by: Reinier Balt <lrbalt@gmail.com>
This commit is contained in:
parent
b97fc2d958
commit
8790a9b06d
1 changed files with 2 additions and 2 deletions
|
|
@ -513,12 +513,12 @@ class TodosControllerTest < Test::Rails::TestCase
|
|||
p.hide!
|
||||
assert p.reload().hidden?
|
||||
todo = p.todos.first
|
||||
assert "project_hidden", todo.state
|
||||
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"=>{}
|
||||
todo.reload()
|
||||
assert "active", todo.state
|
||||
assert_equal "active", todo.state
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue