Maintenance: Removed deprecate warnings.

This commit is contained in:
Martin Edenhofer 2020-05-26 13:44:46 +02:00 committed by Thorsten Eckel
parent 9b459556cd
commit acd28480b0

View file

@ -7,21 +7,21 @@ class GeoIpTest < ActiveSupport::TestCase
result = Service::GeoIp.location('127.0.0.0.1') result = Service::GeoIp.location('127.0.0.0.1')
assert(result) assert(result)
assert_equal(nil, result['country_name']) assert_nil(result['country_name'])
assert_equal(nil, result['city_name']) assert_nil(result['city_name'])
assert_equal(nil, result['country_code']) assert_nil(result['country_code'])
assert_equal(nil, result['continent_code']) assert_nil(result['continent_code'])
assert_equal(nil, result['latitude']) assert_nil(result['latitude'])
assert_equal(nil, result['longitude']) assert_nil(result['longitude'])
result = Service::GeoIp.location('127.0.0.1') result = Service::GeoIp.location('127.0.0.1')
assert(result) assert(result)
assert_equal(nil, result['country_name']) assert_nil(result['country_name'])
assert_equal(nil, result['city_name']) assert_nil(result['city_name'])
assert_equal(nil, result['country_code']) assert_nil(result['country_code'])
assert_equal(nil, result['continent_code']) assert_nil(result['continent_code'])
assert_equal(nil, result['latitude']) assert_nil(result['latitude'])
assert_equal(nil, result['longitude']) assert_nil(result['longitude'])
result = Service::GeoIp.location('195.65.29.254') result = Service::GeoIp.location('195.65.29.254')
assert(result) assert(result)