Sha256: 8cbfa833d58e4c034493d314700eba70cfa3df1d96bf33a6f352e895421657d3
Contents?: true
Size: 338 Bytes
Versions: 1
Compression:
Stored size: 338 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe "Ip2location" do it "work correctly with ipv4" do i2l = Ip2location.new.open(File.dirname(__FILE__) + "/assets/IP-COUNTRY-SAMPLE.bin") record = i2l.get_all('13.5.10.6') record.should_not be_nil record.country_short.should == 'US' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ip2location_ruby-0.1.2 | spec/ip2location_ruby_spec.rb |