DEV: Fix heisentest.

Follow-up to 8e133de83118200f46a21b0e4c3a931e1cd14954.
This commit is contained in:
Bianca Nenciu 2019-07-16 14:41:03 +03:00
parent b3eb67976d
commit 1308919a3d

View File

@ -12,6 +12,10 @@ describe CategoryFeaturedTopic do
fab!(:category) { Fabricate(:category) }
let!(:category_post) { PostCreator.create(user, raw: "I put this post in the category", title: "categorize THIS", category: category.id) }
before do
CategoryFeaturedTopic.clear_exclude_category_ids
end
it "works in batched mode" do
category2 = Fabricate(:category)
post2 = create_post(category: category2.id)