Sha256: a6565a324db114b4f4a81adc6f5f84e68daad281f38fecf27fa0a1a7ae6a4a19
Contents?: true
Size: 487 Bytes
Versions: 7
Compression:
Stored size: 487 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe "Ip2location" do it "work correctly with web service lookup" do ws = Ip2locationWebService.new('demo', 'WS25', true) record = ws.lookup('8.8.8.8', '', 'en') expect(record['country_code']).to eq 'US' end it "work correctly with web service get_credit" do ws = Ip2locationWebService.new('demo', 'WS25', true) record = ws.get_credit() expect(record).to eq 0 end end
Version data entries
7 entries across 7 versions & 1 rubygems