clear cache to fix spec

This commit is contained in:
Sam 2015-03-03 08:27:09 +11:00
parent 7b57d6f8f0
commit 336c15672a

View File

@ -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} }