mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-22 08:46:11 +01:00
parent
9089e15788
commit
e0143cf435
3 changed files with 23 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue