fix some unit tests

This commit is contained in:
r888888888
2018-01-02 15:12:48 -08:00
parent 4a80d6c337
commit 604e9e9866
5 changed files with 22 additions and 15 deletions

View File

@@ -301,6 +301,7 @@ class UserTest < ActiveSupport::TestCase
context "that might be a sock puppet" do
setup do
@user = FactoryGirl.create(:user, last_ip_addr: "127.0.0.2")
Danbooru.config.unstub(:enable_sock_puppet_validation?)
end
should "not validate" do