move actual activation to model

fixes #1881
This commit is contained in:
Carsten Otto 2015-08-09 13:47:17 +02:00
parent 9089e15788
commit e0143cf435
3 changed files with 23 additions and 4 deletions

View file

@ -542,4 +542,14 @@ class TodoTest < ActiveSupport::TestCase
assert_equal "<p><strong>test</strong></p>", todo.rendered_notes
end
def test_destroying_action_activates_successors
@not_completed1.add_predecessor(@not_completed2)
@not_completed1.block!
@not_completed2.destroy
@not_completed1.reload
assert @not_completed1.active?
end
end