fix tests

This commit is contained in:
r888888888
2017-02-21 14:37:40 -08:00
parent e699684c61
commit 6bd03ee4db
3 changed files with 10 additions and 6 deletions

View File

@@ -1,7 +1,9 @@
require 'test_helper'
class PostVoteTest < ActiveSupport::TestCase
setup do
def setup
super
user = FactoryGirl.create(:user)
CurrentUser.user = user
CurrentUser.ip_addr = "127.0.0.1"