Sha256: a93e784aa3edef9c3ff26e77aebe0558c0577177c0edb4716847cdcf7057adf6
Contents?: true
Size: 674 Bytes
Versions: 2
Compression:
Stored size: 674 Bytes
Contents
require 'spec_helper' describe "Location" do before(:all) do @ip = Ipdb::Query.new('64.13.134.52').parse end it "should return the Location hostname" do @ip.hostname.should == 'scanme.nmap.org' end it "should return the Location ip address" do @ip.address.should == '64.13.134.52' end it "should return the Location Country" do @ip.country.should == 'United States' end it "should return the Location Region" do @ip.region.should == 'California' end it "should return the Location City" do @ip.city.should == 'Sunnyvale' end it "should return the Location Status" do @ip.status.should == 'OK' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ipdb-1.1.0 | spec/location_spec.rb |
ipdb-1.0.0 | spec/location_spec.rb |