summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-07-06 04:34:04 +0200
committererdgeist <erdgeist@erdgeist.org>2026-07-06 04:34:04 +0200
commit394a2b890686cadd7a3ecb0038ce5d0b744431f4 (patch)
treec09550efe2acb64bf7e79c9a8b0e5f4724abfe7e /db
parent970f10854bccee0528de8435e5a65cdcc18ba93e (diff)
Strengthen event/occurrence cascade test with real assertions
test_can_remove_a_node_with_an_event previously just called node.destroy and get :index with no assertions at all - would pass whether or not occurrences were actually cleaned up, or even if index rendered correctly afterward. Now confirms occurrences genuinely exist before destroy (otherwise a passing post-destroy count of zero is meaningless - indistinguishable from "nothing to cascade in the first place"), scopes the count to this event specifically rather than a global Occurrence.count that could coincidentally pass regardless of whether this cascade works, and checks the trailing index request actually succeeds rather than just not raising. First real test of the occurrences.event_id FK constraint added earlier this session, not just the application-level dependent: :destroy.
Diffstat (limited to 'db')
0 files changed, 0 insertions, 0 deletions