Sha256: cf98d10a0c8e742ee0dace685f1e5b360f7e31f88840cbf4f66ef3b4b9eb73ed

Contents?: true

Size: 348 Bytes

Versions: 1

Compression:

Stored size: 348 Bytes

Contents

# encoding: utf-8

require 'test_helper'

class IpMetaDataTest < TestCase
  def test_should_work_with_incorrect_response
    resp =  %Q{<?xml version="1.0" encoding="windows-1251"?><ip-answer><ip value="127.0.0.1"><message>Not found</message></ip></ip-answer>}
    meta = Ipgeobase::IpMetaData.parse(resp)
    assert_equal nil, meta.city
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ipgeobase-0.1.2 test/lib/ip_meta_data_test.rb