Sha256: f28924e23a171e4dd3082f296fa95f01be4015d4e340b5a1175222dbf920f25b
Contents?: true
Size: 605 Bytes
Versions: 3
Compression:
Stored size: 605 Bytes
Contents
require 'spec_helper' require 'overpass_api_ruby' describe OverpassAPI::XML do it "should return the requested elements" do options={:bbox => {:s => -34.705448, :n => -34.526562, :w => -58.531471, :e => -58.335159}, :timeout => 900, :element_limit => 100000} overpass = OverpassAPI::XML.new(options) ba_query = "<union><query type='relation'><has-kv k='route' v='subway'/></query>" << "</union><union><item/><recurse type='down'/></union>" expect(overpass.query(ba_query)[:elements]).to be_a(Array) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
overpass-api-ruby-0.3 | spec/integration/xml_spec.rb |
overpass-api-ruby-0.2.3 | spec/integration/xml_spec.rb |
overpass-api-ruby-0.2.2 | spec/integration/xml_spec.rb |