mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
clear cache to fix spec
This commit is contained in:
parent
7b57d6f8f0
commit
336c15672a
1 changed files with 4 additions and 0 deletions
|
@ -432,6 +432,10 @@ describe TopicQuery do
|
|||
|
||||
context 'when logged in' do
|
||||
|
||||
before do
|
||||
RandomTopicSelector.clear_cache!
|
||||
end
|
||||
|
||||
let(:topic) { Fabricate(:topic) }
|
||||
let(:suggested_topics) { topic_query.list_suggested_for(topic).topics.map{|t| t.id} }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue