mirror of
https://github.com/discourse/discourse.git
synced 2025-01-06 07:53:43 +08:00
parent
2cc533e26e
commit
4bb966aae6
|
@ -145,7 +145,7 @@ describe TopicQuery do
|
||||||
|
|
||||||
list = TopicQuery.new(moderator, category: diff_category.slug).list_latest
|
list = TopicQuery.new(moderator, category: diff_category.slug).list_latest
|
||||||
expect(list.topics.size).to eq(1)
|
expect(list.topics.size).to eq(1)
|
||||||
expect(list.preload_key).to eq("topic_list_c/different-category/l/latest")
|
expect(list.preload_key).to eq("topic_list_c/different-category/#{diff_category.id}/l/latest")
|
||||||
|
|
||||||
# Defaults to no category filter when slug does not exist
|
# Defaults to no category filter when slug does not exist
|
||||||
expect(TopicQuery.new(moderator, category: 'made up slug').list_latest.topics.size).to eq(2)
|
expect(TopicQuery.new(moderator, category: 'made up slug').list_latest.topics.size).to eq(2)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user