comments: allow new users to comment.
Remove the rule that users less than a week old can't leave comments.
This commit is contained in:
@@ -5,7 +5,6 @@ class CommentVotesControllerTest < ActionDispatch::IntegrationTest
|
||||
setup do
|
||||
CurrentUser.user = @user = create(:user)
|
||||
CurrentUser.ip_addr = "127.0.0.1"
|
||||
Danbooru.config.stubs(:member_comment_time_threshold).returns(1.week.from_now)
|
||||
@comment = create(:comment)
|
||||
end
|
||||
|
||||
|
||||
@@ -9,7 +9,6 @@ class CommentsControllerTest < ActionDispatch::IntegrationTest
|
||||
|
||||
CurrentUser.user = @user
|
||||
CurrentUser.ip_addr = "127.0.0.1"
|
||||
Danbooru.config.stubs(:member_comment_time_threshold).returns(1.week.from_now)
|
||||
Danbooru.config.stubs(:member_comment_limit).returns(100)
|
||||
end
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@ module Moderator
|
||||
@user = create(:gold_user)
|
||||
end
|
||||
@admin = create(:admin_user)
|
||||
Danbooru.config.stubs(:member_comment_time_threshold).returns(1.week.from_now)
|
||||
end
|
||||
|
||||
context "show action" do
|
||||
|
||||
Reference in New Issue
Block a user