another set of dynamic finder migrations. All non-cucumber tests pass

This commit is contained in:
Reinier Balt 2013-02-27 11:50:49 +01:00
parent 64a198d45a
commit ef91dd0c64
18 changed files with 66 additions and 66 deletions

View file

@ -21,7 +21,7 @@ class RecurringTodosTest < ActionController::IntegrationTest
assert_equal 1, rt.todos.size # and it has one todo referencing it
# when I toggle the todo complete
todo = Todo.find_by_recurring_todo_id(1)
todo = Todo.where(:recurring_todo_id => 1).first
put "/todos/#{todo.id}/toggle_check", :_source_view => 'todo'
todo.reload
assert todo.completed?