2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 09:10:25 +08:00

FIX: ensure consistency should handle cases where a topic trashed

Followup to c05b6170
This commit is contained in:
Sam Saffron 2019-06-07 14:56:31 +10:00
parent ee142c2173
commit ff3a1eae3a
2 changed files with 4 additions and 1 deletions

View file

@ -898,6 +898,9 @@ describe Category do
uncategorized.create_category_definition
uncategorized.topic.posts.first.destroy!
# make stuff extra broken
uncategorized.topic.trash!
category = Fabricate(:category)
category_destroyed = Fabricate(:category)
category_trashed = Fabricate(:category)