mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-25 00:24:07 +01:00
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:
parent
93b0a2557c
commit
5ed69fc1a2
7 changed files with 91 additions and 85 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue