mirror of
https://github.com/discourse/discourse.git
synced 2025-03-26 04:25:37 +08:00
clear cache to fix spec
This commit is contained in:
parent
7b57d6f8f0
commit
336c15672a
@ -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…
x
Reference in New Issue
Block a user