DEV: Stablize `requests/search_controller_spec`.

This commit is contained in:
Guo Xiang Tan 2018-06-05 10:07:05 +08:00
parent aaea24448e
commit a508e6a5f6
1 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,10 @@ describe SearchController do
SearchIndexer.enable
end
after do
$redis.flushall
end
it "can search correctly" do
my_post = Fabricate(:post, raw: 'this is my really awesome post')