mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
FEATURE: delete all accounts from this IP in the IP lookup modal
This commit is contained in:
@ -414,6 +414,19 @@ describe Admin::UsersController do
|
||||
|
||||
end
|
||||
|
||||
context "delete_other_accounts_with_same_ip" do
|
||||
|
||||
it "works" do
|
||||
Fabricate(:user, ip_address: "42.42.42.42")
|
||||
Fabricate(:user, ip_address: "42.42.42.42")
|
||||
|
||||
UserDestroyer.any_instance.expects(:destroy).twice
|
||||
|
||||
xhr :delete, :delete_other_accounts_with_same_ip, ip: "42.42.42.42", exclude: -1, order: "trust_level DESC"
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
it 'can sync up sso' do
|
||||
|
Reference in New Issue
Block a user