Sha256: fb596a46bc31d6d4137e0929a95d0f8c4e59d4f603098247ae83daee570060a7
Contents?: true
Size: 488 Bytes
Versions: 3
Compression:
Stored size: 488 Bytes
Contents
require 'spec_helper' describe GeoNamesAPI::Neighbourhood do describe "::find" do it "should find NYC" do result = GeoNamesAPI::Neighbourhood.find(lat: 40.78343, lng: -73.96625) result.hierarchy.should == ["United States", "New York", "New York County", "New York City-Manhattan", "Central Park"] end it "should not find streets outside of the US" do proc { GeoNamesAPI::Neighbourhood.find(0, 0) }.should raise_error GeoNamesAPI::Error end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
geonames_api-0.1.4 | spec/geonames_api/neighbourhood_spec.rb |
geonames_api-0.1.3 | spec/geonames_api/neighbourhood_spec.rb |
geonames_api-0.1.2 | spec/geonames_api/neighbourhood_spec.rb |