mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 03:06:53 +08:00
FEATURE: tag filter dropdown menu is scoped to user and category
This commit is contained in:
@ -61,11 +61,11 @@ describe TopicList do
|
||||
expect(TopicList.new('latest', other_topic.user, [other_topic]).tags.sort).to eq([tag.name, other_tag.name].sort)
|
||||
end
|
||||
|
||||
it "with another category with no tags, should return exclude tags restricted to other categories" do
|
||||
it "with another category with no tags, should return no tags" do
|
||||
other_category = Fabricate(:category)
|
||||
topic3 = Fabricate(:topic, category: other_category)
|
||||
list = TopicList.new('latest', topic3.user, [topic3], { category: other_category.id, category_id: other_category.id })
|
||||
expect(list.tags).to eq([other_tag.name])
|
||||
expect(list.tags).to be_empty
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user