Maintenance: Removed deprecate warnings.
This commit is contained in:
parent
9b459556cd
commit
acd28480b0
1 changed files with 12 additions and 12 deletions
|
@ -7,21 +7,21 @@ class GeoIpTest < ActiveSupport::TestCase
|
|||
|
||||
result = Service::GeoIp.location('127.0.0.0.1')
|
||||
assert(result)
|
||||
assert_equal(nil, result['country_name'])
|
||||
assert_equal(nil, result['city_name'])
|
||||
assert_equal(nil, result['country_code'])
|
||||
assert_equal(nil, result['continent_code'])
|
||||
assert_equal(nil, result['latitude'])
|
||||
assert_equal(nil, result['longitude'])
|
||||
assert_nil(result['country_name'])
|
||||
assert_nil(result['city_name'])
|
||||
assert_nil(result['country_code'])
|
||||
assert_nil(result['continent_code'])
|
||||
assert_nil(result['latitude'])
|
||||
assert_nil(result['longitude'])
|
||||
|
||||
result = Service::GeoIp.location('127.0.0.1')
|
||||
assert(result)
|
||||
assert_equal(nil, result['country_name'])
|
||||
assert_equal(nil, result['city_name'])
|
||||
assert_equal(nil, result['country_code'])
|
||||
assert_equal(nil, result['continent_code'])
|
||||
assert_equal(nil, result['latitude'])
|
||||
assert_equal(nil, result['longitude'])
|
||||
assert_nil(result['country_name'])
|
||||
assert_nil(result['city_name'])
|
||||
assert_nil(result['country_code'])
|
||||
assert_nil(result['continent_code'])
|
||||
assert_nil(result['latitude'])
|
||||
assert_nil(result['longitude'])
|
||||
|
||||
result = Service::GeoIp.location('195.65.29.254')
|
||||
assert(result)
|
||||
|
|
Loading…
Reference in a new issue