mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
correct implementation add tests
This commit is contained in:
@ -374,6 +374,7 @@ describe TopicQuery do
|
||||
|
||||
it "returns an empty set" do
|
||||
expect(topics).to be_blank
|
||||
expect(topic_query.list_latest.topics).to be_blank
|
||||
end
|
||||
|
||||
context 'un-muted' do
|
||||
@ -383,6 +384,7 @@ describe TopicQuery do
|
||||
|
||||
it "returns the topic again" do
|
||||
expect(topics).to eq([new_topic])
|
||||
expect(topic_query.list_latest.topics).not_to be_blank
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user