From 8790a9b06da201e2c331dddb01d9006b11e74252 Mon Sep 17 00:00:00 2001 From: piglop Date: Wed, 28 Jan 2009 15:29:18 +0800 Subject: [PATCH] Fixed a small error in tests Signed-off-by: Reinier Balt --- test/functional/todos_controller_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/todos_controller_test.rb b/test/functional/todos_controller_test.rb index c12c9539..3d2bda83 100644 --- a/test/functional/todos_controller_test.rb +++ b/test/functional/todos_controller_test.rb @@ -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