fix forum topic test

This commit is contained in:
Albert Yi
2019-01-02 12:33:56 -08:00
parent 6f30c99ac3
commit f78ff57884

View File

@@ -3,6 +3,7 @@ require 'test_helper'
class ForumTopicTest < ActiveSupport::TestCase
context "A forum topic" do
setup do
travel_to Time.now
@user = FactoryBot.create(:user)
CurrentUser.user = @user
CurrentUser.ip_addr = "127.0.0.1"