Little fix to make test pass

This commit is contained in:
Eric Allen 2008-09-13 13:29:09 -07:00
parent 2c3b3d9d69
commit c85c5fd957

View file

@ -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