fix unit tests

This commit is contained in:
r888888888
2015-09-23 12:13:14 -07:00
parent b6d9011f6c
commit 3df9f0cdf6
9 changed files with 14045 additions and 93 deletions

View File

@@ -53,7 +53,9 @@ class PostDisapprovalTest < ActiveSupport::TestCase
setup do
@post = FactoryGirl.create(:post)
@user = FactoryGirl.create(:user)
@disapproval = PostDisapproval.create(:user => @user, :post => @post)
Timecop.travel(2.months.ago) do
@disapproval = PostDisapproval.create(:user => @user, :post => @post)
end
end
should "be pruned" do