fix tag trending

This commit is contained in:
r888888888
2013-07-01 01:16:28 -07:00
parent fc6870750c
commit 7e6670b2eb
3 changed files with 12 additions and 5 deletions

View File

@@ -16,6 +16,8 @@ class TagTest < ActiveSupport::TestCase
context ".trending" do
setup do
Tag.stubs(:trending_count_limit).returns(0)
Timecop.travel(1.week.ago) do
FactoryGirl.create(:post, :tag_string => "aaa")
FactoryGirl.create(:post, :tag_string => "bbb")