From c85c5fd95724d74038541fc3a17e58de04a22b4e Mon Sep 17 00:00:00 2001 From: Eric Allen Date: Sat, 13 Sep 2008 13:29:09 -0700 Subject: [PATCH] Little fix to make test pass --- test/functional/todos_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/todos_controller_test.rb b/test/functional/todos_controller_test.rb index b99b537c..5f353082 100644 --- a/test/functional/todos_controller_test.rb +++ b/test/functional/todos_controller_test.rb @@ -374,7 +374,7 @@ class TodosControllerTest < Test::Rails::TestCase assert todo_1.completed? # check there is a new todo linked to the recurring pattern - next_todo = Todo.find_by_recurring_todo_id(recurring_todo_1.id) + next_todo = Todo.find(:first, :conditions => {:recurring_todo_id => recurring_todo_1.id, :state => 'active'}) assert_equal "Call Bill Gates every day", next_todo.description end