mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
parent
b3eb67976d
commit
1308919a3d
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue