fix tests

This commit is contained in:
r888888888
2016-01-18 17:22:27 -08:00
parent ce3af81c9f
commit 46b32448e8
4 changed files with 6 additions and 6 deletions

View File

@@ -3,7 +3,7 @@ require 'test_helper'
class PoolsControllerTest < ActionController::TestCase
context "The pools controller" do
setup do
@user = FactoryGirl.create(:user)
@user = Timecop.travel(1.month.ago) {FactoryGirl.create(:user)}
@mod = FactoryGirl.create(:moderator_user)
CurrentUser.user = @user
CurrentUser.ip_addr = "127.0.0.1"