mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
DEV: Reduce verbosity in TopicQuery
spec.
This commit is contained in:
parent
a93aa5bbce
commit
6cceb72173
@ -257,14 +257,12 @@ describe TopicQuery do
|
|||||||
notification_level: CategoryUser.notification_levels[:muted])
|
notification_level: CategoryUser.notification_levels[:muted])
|
||||||
|
|
||||||
topic_ids = topic_query.list_latest.topics.map(&:id)
|
topic_ids = topic_query.list_latest.topics.map(&:id)
|
||||||
expect(topic_ids).not_to include(muted_topic.id)
|
|
||||||
expect(topic_ids).to include(tagged_topic.id)
|
expect(topic_ids).to contain_exactly(tagged_topic.id, untagged_topic.id)
|
||||||
expect(topic_ids).to include(untagged_topic.id)
|
|
||||||
|
|
||||||
topic_ids = topic_query.list_new.topics.map(&:id)
|
topic_ids = topic_query.list_new.topics.map(&:id)
|
||||||
expect(topic_ids).not_to include(muted_topic.id)
|
|
||||||
expect(topic_ids).to include(tagged_topic.id)
|
expect(topic_ids).to contain_exactly(tagged_topic.id, untagged_topic.id)
|
||||||
expect(topic_ids).to include(untagged_topic.id)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user