Sha256: a3825bbad129bc37dbdda15aee4c4e148e8f55ac8a506f7c8f85aafe364a739d

Contents?: true

Size: 396 Bytes

Versions: 5

Compression:

Stored size: 396 Bytes

Contents

require 'spec_helper'

describe GeoNamesAPI::Place do
  describe "::find" do
    it "should find one place" do
      result = GeoNamesAPI::Place.find("50.01","10.2")
      result.should be_present
    end
  end

  describe "::all" do
    it "should find multiple places in 100km radius" do
      result = GeoNamesAPI::Place.all("50.01","10.2","100")
      result.size.should > 0
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
geonames_api-0.1.4 spec/geonames_api/place_spec.rb
geonames_api-0.1.3 spec/geonames_api/place_spec.rb
geonames_api-0.1.2 spec/geonames_api/place_spec.rb
geonames_api-0.1.1 spec/geonames_api/place_spec.rb
geonames_api-0.1.0 spec/geonames_api/place_spec.rb