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