From b50a1ce26f5287d82ed6a5fbc51ee2c304f512b9 Mon Sep 17 00:00:00 2001 From: Eric Allen Date: Mon, 17 May 2010 11:02:23 -0400 Subject: [PATCH] Fix a couple of test definitions to avoid false test failures State should be unspecified to default to active Fixes #977 (again) --- 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 ec93e728..d4f716e7 100644 --- a/test/functional/todos_controller_test.rb +++ b/test/functional/todos_controller_test.rb @@ -320,7 +320,7 @@ class TodosControllerTest < ActionController::TestCase "due(1i)"=>"2007", "due(2i)"=>"1", "due(3i)"=>"2", "show_from(1i)"=>"", "show_from(2i)"=>"", "show_from(3i)"=>"", "project_id"=>"1", - "notes"=>"test notes", "description"=>"test_mobile_create_action", "state"=>"0"}} + "notes"=>"test notes", "description"=>"test_mobile_create_action"}} t = Todo.find_by_description("test_mobile_create_action") assert_not_nil t assert_equal 2, t.context_id @@ -347,7 +347,7 @@ class TodosControllerTest < ActionController::TestCase "due(1i)"=>"2007", "due(2i)"=>"1", "due(3i)"=>"2", "show_from(1i)"=>"", "show_from(2i)"=>"", "show_from(3i)"=>"", "project_id"=>"1", - "notes"=>"test notes", "state"=>"0"}, "tag_list"=>"test, test2"} + "notes"=>"test notes"}, "tag_list"=>"test, test2"} assert_template 'todos/new' end