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