fix failing tests

Includes a monkey patch for Arel that may need to be removed when 4.0.0 final ships
This commit is contained in:
Reinier Balt 2013-05-13 15:35:21 +02:00
parent 80974fb0d5
commit 08498fee4f
10 changed files with 50 additions and 43 deletions

View file

@ -28,7 +28,7 @@ class RecurringTodosTest < ActionDispatch::IntegrationTest
rt.reload # then there should be two todos referencing
assert_equal 2, rt.todos.size
todo2 = Todo.find(:first, :conditions => {:recurring_todo_id => rt.id, :state => 'active'})
todo2 = Todo.where(:recurring_todo_id => rt.id, :state => 'active').first
assert_not_equal todo2.id, todo.id # and the todos should be different
# when I delete the recurring todo