mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 21:14:41 +08:00
clear cache to fix spec
This commit is contained in:
@ -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} }
|
||||
|
||||
|
Reference in New Issue
Block a user