update gems and fix failures from new aasm

I'm not sure the test failures caused by reload not working are caused by the new aasm, 
perhaps the thread isolation is causing that...
This commit is contained in:
Reinier Balt 2013-04-29 11:53:32 +02:00
parent 93b0a2557c
commit 5ed69fc1a2
7 changed files with 91 additions and 85 deletions

View file

@ -82,8 +82,9 @@ class RecurringTodosControllerTest < ActionController::TestCase
# mark as active
xhr :post, :toggle_check, :id=>1, :_source_view=>""
recurring_todo_1.reload
assert recurring_todo_1.active?
recurring_todo_1 = RecurringTodo.find(1) # reload seems to not work
assert recurring_todo_1.active?, "recurring todo should be active but is #{recurring_todo_1.aasm_current_state}"
# by making active, a new todo should be created from the pattern
assert_equal todo_count+1, Todo.count