Commit 6c14d190 authored by Albert Yi's avatar Albert Yi

fix tests

parent 856637ac
......@@ -23,6 +23,8 @@ class PopularSearchService
def fetch_data
return [] unless self.class.enabled?
dates = date.strftime("%Y-%m-%d")
Cache.get("ps-day-#{dates}", 1.minute) do
......@@ -3,6 +3,8 @@ require "test_helper"
class PostsControllerTest < ActionDispatch::IntegrationTest
context "The posts controller" do
setup do
@user = travel_to(1.month.ago) {create(:user)}
as_user do
@post = create(:post, :tag_string => "aaaa")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment