Sha256: 3b2038eb3b60c8cea37dc5c656c770f87f2c873c1388941ef56435e4ca983ab9
Contents?: true
Size: 567 Bytes
Versions: 2
Compression:
Stored size: 567 Bytes
Contents
require 'spec_helper' describe GeoNamesAPI::Street do describe "::find" do it "expect to find one Street" do result = GeoNamesAPI::Street.find(37.451, -122.18) expect(result).to be_present end it "expect to not find streets outside of the US" do result = GeoNamesAPI::Street.find(50.01, 10.2) expect(result).to be_nil end end describe "::all" do it "expect to find multiple Streets in 100km radius" do result = GeoNamesAPI::Street.all(37.8, -122.4, 1, 3) expect(result.size).to eq(3) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
geonames_api-0.1.6 | spec/geonames_api/street_spec.rb |
geonames_api-0.1.5 | spec/geonames_api/street_spec.rb |