correct test

This commit is contained in:
Sam 2015-02-25 18:09:45 +11:00
parent 8248abf73c
commit 9ca61efa97
1 changed files with 5 additions and 0 deletions

View File

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