Sha256: f465db1a2b6d5ed17cdcc7155a028b41e6747085f3046ef7ebc44d63b05f3c70
Contents?: true
Size: 334 Bytes
Versions: 2
Compression:
Stored size: 334 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ip2location_ruby-0.3.1 | spec/ip2location_ruby_spec.rb |
ip2location_ruby-0.2.0 | spec/ip2location_ruby_spec.rb |