fix tests
This commit is contained in:
@@ -5,6 +5,7 @@ class CommentsControllerTest < ActionController::TestCase
|
||||
setup do
|
||||
CurrentUser.user = Factory.create(:user)
|
||||
CurrentUser.ip_addr = "127.0.0.1"
|
||||
Danbooru.config.stubs(:member_comment_time_threshold).returns(1.week.from_now)
|
||||
@post = Factory.create(:post)
|
||||
@comment = Factory.create(:comment, :post => @post)
|
||||
@user = Factory.create(:moderator_user)
|
||||
|
||||
Reference in New Issue
Block a user