Sha256: 442490b96c69dd5c7564347589c033e7d8158057d3a74ba4b48a640051ccaed8
Contents?: true
Size: 491 Bytes
Versions: 1
Compression:
Stored size: 491 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', 'WS24', 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', 'WS24', true) record = ws.get_credit() expect(record).to_not eq 0 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ip2location_ruby-8.2.3 | spec/ip2location_ruby_webservice_spec.rb |