users: remove user is not ip banned validation.

This is handled on the controller level now.
This commit is contained in:
evazion
2020-03-21 20:55:03 -05:00
parent b21e1d219c
commit 5bc82bf07b
2 changed files with 0 additions and 16 deletions

View File

@@ -39,15 +39,6 @@ class UserTest < ActiveSupport::TestCase
end
end
should "not validate if the originating ip address is banned" do
CurrentUser.scoped(User.anonymous, "1.2.3.4") do
create(:ip_ban, ip_addr: '1.2.3.4')
user = build(:user, last_ip_addr: '1.2.3.4')
refute(user.valid?)
assert_equal("IP address is banned", user.errors.full_messages.join)
end
end
should "limit comment votes" do
Danbooru.config.stubs(:member_comment_time_threshold).returns(1.week.from_now)
Danbooru.config.stubs(:member_comment_limit).returns(10)