FEATURE: delete all accounts from this IP in the IP lookup modal

This commit is contained in:
Régis Hanol
2014-11-20 19:59:20 +01:00
parent 5f4e4de02a
commit b8d806ee07
7 changed files with 67 additions and 20 deletions

View File

@ -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