From 9ca61efa973c020adab276756a88f8d880353208 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 25 Feb 2015 18:09:45 +1100 Subject: [PATCH] correct test --- spec/components/topic_query_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/components/topic_query_spec.rb b/spec/components/topic_query_spec.rb index f5a56bd0e..c4223114e 100644 --- a/spec/components/topic_query_spec.rb +++ b/spec/components/topic_query_spec.rb @@ -404,6 +404,11 @@ describe TopicQuery do context 'suggested_for' do + + before do + $redis.del RandomTopicSelector.cache_key + end + context 'when anonymous' do let(:topic) { Fabricate(:topic) } let!(:new_topic) { Fabricate(:post, user: creator).topic }