mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 03:10:46 -06:00
correct spec
This commit is contained in:
parent
2f0c6c99e0
commit
505939eab7
@ -504,7 +504,7 @@ describe Admin::UsersController do
|
||||
context 'ip-info' do
|
||||
|
||||
it "uses ipinfo.io webservice to retrieve the info" do
|
||||
Excon.expects(:get).with("http://ipinfo.io/123.123.123.123/json", read_timeout: 30, connect_timeout: 30)
|
||||
Excon.expects(:get).with("https://ipinfo.io/123.123.123.123/json", read_timeout: 10, connect_timeout: 10)
|
||||
xhr :get, :ip_info, ip: "123.123.123.123"
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user