From f34d8a4787a27e8c76fc5643a760c13b0343e7de Mon Sep 17 00:00:00 2001 From: Eric Allen Date: Sun, 14 Sep 2008 12:29:55 -0700 Subject: [PATCH] Fix buggy test --- 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