mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-14 08:26:16 +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!
|
p.hide!
|
||||||
assert p.reload().hidden?
|
assert p.reload().hidden?
|
||||||
todo = p.todos.first
|
todo = p.todos.first
|
||||||
assert "project_hidden", todo.state
|
assert_equal "project_hidden", todo.state
|
||||||
|
|
||||||
# clear project from todo: the todo should be unhidden
|
# 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 => 1, :_source_view => 'todo', "project_name"=>"None", "todo"=>{}
|
||||||
todo.reload()
|
todo.reload()
|
||||||
assert "active", todo.state
|
assert_equal "active", todo.state
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue